C# Class System.Web.UI.WebControls.GridView

Inheritance: System.Web.UI.WebControls.CompositeDataBoundControl, ICallbackEventHandler, ICallbackContainer, IPostBackEventHandler, IPostBackContainer
ファイルを表示 Open project: runefs/Marvin Class Usage Examples

Private Properties

Property Type Description
CancelEdit void
CopyOrderedDictionary IOrderedDictionary
CreateAutoFieldProperties AutoGeneratedFieldProperties[]
CreateEmptyrRow GridViewRow
CreatePagerRow GridViewRow
CreateRowDataKey IOrderedDictionary
DeleteCallback bool
EditRow void
EndRowEdit void
GetRowState DataControlRowState
GetRowValues IOrderedDictionary
ICallbackContainer string
ICallbackEventHandler string
ICallbackEventHandler void
IPostBackContainer PostBackOptions
IPostBackEventHandler void
LoadDataKeyArrayState void
OnFieldsChanged void
ProcessEvent void
RenderGrid void
RequireBinding void
SaveDataKeyArrayState object[]
SelectRow void
ShowPage void
Sort void
UpdateCallback bool
UpdateRow void
UpdateRow void

Public Methods

Method Description
DataBind ( ) : void
DeleteRow ( int rowIndex ) : void
GridView ( ) : System
IsBindableType ( Type type ) : bool
Sort ( string newSortExpression, SortDirection newSortDirection ) : void

Protected Methods

Method Description
CreateAutoGeneratedColumn ( AutoGeneratedFieldProperties fieldProperties ) : AutoGeneratedField
CreateChildControls ( IEnumerable data, bool dataBinding ) : int
CreateChildTable ( ) : Table
CreateColumns ( PagedDataSource dataSource, bool useDataSource ) : ICollection
CreateControlStyle ( ) : Style
CreateDataSourceSelectArguments ( ) : DataSourceSelectArguments
CreateRow ( int rowIndex, int dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState ) : GridViewRow
ExtractRowValues ( IOrderedDictionary fieldValues, GridViewRow row, bool includeReadOnlyFields, bool includePrimaryKey ) : void
GetCallbackResult ( ) : string
GetCallbackScript ( IButtonControl control, string argument ) : string
InitializePager ( GridViewRow row, int columnSpan, PagedDataSource dataSource ) : void
InitializeRow ( GridViewRow row, DataControlField fields ) : void
LoadControlState ( object ob ) : void
LoadViewState ( object savedState ) : void
OnBubbleEvent ( object source, EventArgs e ) : bool
OnDataPropertyChanged ( ) : void
OnDataSourceViewChanged ( object sender, EventArgs e ) : void
OnInit ( EventArgs e ) : void
OnPageIndexChanged ( EventArgs e ) : void
OnPageIndexChanging ( GridViewPageEventArgs e ) : void
OnPagePreLoad ( object sender, EventArgs e ) : void
OnPreRender ( EventArgs e ) : void
OnRowCancelingEdit ( GridViewCancelEditEventArgs e ) : void
OnRowCommand ( GridViewCommandEventArgs e ) : void
OnRowCreated ( GridViewRowEventArgs e ) : void
OnRowDataBound ( GridViewRowEventArgs e ) : void
OnRowDeleted ( GridViewDeletedEventArgs e ) : void
OnRowDeleting ( GridViewDeleteEventArgs e ) : void
OnRowEditing ( GridViewEditEventArgs e ) : void
OnRowUpdated ( GridViewUpdatedEventArgs e ) : void
OnRowUpdating ( GridViewUpdateEventArgs e ) : void
OnSelectedIndexChanged ( EventArgs e ) : void
OnSelectedIndexChanging ( GridViewSelectEventArgs e ) : void
OnSorted ( EventArgs e ) : void
OnSorting ( GridViewSortEventArgs e ) : void
PerformDataBinding ( IEnumerable data ) : void
PrepareControlHierarchy ( ) : void
RaiseCallbackEvent ( string eventArgs ) : void
RaisePostBackEvent ( string eventArgument ) : void
Render ( HtmlTextWriter writer ) : void
SaveControlState ( ) : object
SaveViewState ( ) : object
TrackViewState ( ) : void

Private Methods

Method Description
CancelEdit ( ) : void
CopyOrderedDictionary ( IOrderedDictionary sourceDic ) : IOrderedDictionary
CreateAutoFieldProperties ( PagedDataSource source ) : AutoGeneratedFieldProperties[]
CreateEmptyrRow ( int fieldCount ) : GridViewRow
CreatePagerRow ( int fieldCount, PagedDataSource dataSource ) : GridViewRow
CreateRowDataKey ( GridViewRow row ) : IOrderedDictionary
DeleteCallback ( int recordsAffected, Exception exception ) : bool
EditRow ( int index ) : void
EndRowEdit ( ) : void
GetRowState ( int index ) : DataControlRowState
GetRowValues ( GridViewRow row, bool includeReadOnlyFields, bool includePrimaryKey ) : IOrderedDictionary
ICallbackContainer ( IButtonControl control, string argument ) : string
ICallbackEventHandler ( ) : string
ICallbackEventHandler ( string eventArgs ) : void
IPostBackContainer ( IButtonControl control ) : PostBackOptions
IPostBackEventHandler ( string eventArgument ) : void
LoadDataKeyArrayState ( object state ) : void
OnFieldsChanged ( object sender, EventArgs args ) : void
ProcessEvent ( string eventName, string param, bool causesValidation ) : void
RenderGrid ( HtmlTextWriter writer ) : void
RequireBinding ( ) : void
SaveDataKeyArrayState ( ) : object[]
SelectRow ( int index ) : void
ShowPage ( int newIndex ) : void
Sort ( string newSortExpression ) : void
UpdateCallback ( int recordsAffected, Exception exception ) : bool
UpdateRow ( GridViewRow row, int rowIndex, bool causesValidation ) : void
UpdateRow ( int rowIndex, bool causesValidation ) : void

Method Details

CreateAutoGeneratedColumn() protected method

protected CreateAutoGeneratedColumn ( AutoGeneratedFieldProperties fieldProperties ) : AutoGeneratedField
fieldProperties AutoGeneratedFieldProperties
return AutoGeneratedField

CreateChildControls() protected method

protected CreateChildControls ( IEnumerable data, bool dataBinding ) : int
data IEnumerable
dataBinding bool
return int

CreateChildTable() protected method

protected CreateChildTable ( ) : Table
return Table

CreateColumns() protected method

protected CreateColumns ( PagedDataSource dataSource, bool useDataSource ) : ICollection
dataSource PagedDataSource
useDataSource bool
return ICollection

CreateControlStyle() protected method

protected CreateControlStyle ( ) : Style
return Style

CreateDataSourceSelectArguments() protected method

protected CreateDataSourceSelectArguments ( ) : DataSourceSelectArguments
return DataSourceSelectArguments

CreateRow() protected method

protected CreateRow ( int rowIndex, int dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState ) : GridViewRow
rowIndex int
dataSourceIndex int
rowType DataControlRowType
rowState DataControlRowState
return GridViewRow

DataBind() public final method

public final DataBind ( ) : void
return void

DeleteRow() public method

public DeleteRow ( int rowIndex ) : void
rowIndex int
return void

ExtractRowValues() protected method

protected ExtractRowValues ( IOrderedDictionary fieldValues, GridViewRow row, bool includeReadOnlyFields, bool includePrimaryKey ) : void
fieldValues IOrderedDictionary
row GridViewRow
includeReadOnlyFields bool
includePrimaryKey bool
return void

GetCallbackResult() protected method

protected GetCallbackResult ( ) : string
return string

GetCallbackScript() protected method

protected GetCallbackScript ( IButtonControl control, string argument ) : string
control IButtonControl
argument string
return string

GridView() public method

public GridView ( ) : System
return System

InitializePager() protected method

protected InitializePager ( GridViewRow row, int columnSpan, PagedDataSource dataSource ) : void
row GridViewRow
columnSpan int
dataSource PagedDataSource
return void

InitializeRow() protected method

protected InitializeRow ( GridViewRow row, DataControlField fields ) : void
row GridViewRow
fields DataControlField
return void

IsBindableType() public method

public IsBindableType ( Type type ) : bool
type Type
return bool

LoadControlState() protected method

protected LoadControlState ( object ob ) : void
ob object
return void

LoadViewState() protected method

protected LoadViewState ( object savedState ) : void
savedState object
return void

OnBubbleEvent() protected method

protected OnBubbleEvent ( object source, EventArgs e ) : bool
source object
e EventArgs
return bool

OnDataPropertyChanged() protected method

protected OnDataPropertyChanged ( ) : void
return void

OnDataSourceViewChanged() protected method

protected OnDataSourceViewChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

OnInit() protected method

protected OnInit ( EventArgs e ) : void
e EventArgs
return void

OnPageIndexChanged() protected method

protected OnPageIndexChanged ( EventArgs e ) : void
e EventArgs
return void

OnPageIndexChanging() protected method

protected OnPageIndexChanging ( GridViewPageEventArgs e ) : void
e GridViewPageEventArgs
return void

OnPagePreLoad() protected method

protected OnPagePreLoad ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

OnPreRender() protected method

protected OnPreRender ( EventArgs e ) : void
e EventArgs
return void

OnRowCancelingEdit() protected method

protected OnRowCancelingEdit ( GridViewCancelEditEventArgs e ) : void
e GridViewCancelEditEventArgs
return void

OnRowCommand() protected method

protected OnRowCommand ( GridViewCommandEventArgs e ) : void
e GridViewCommandEventArgs
return void

OnRowCreated() protected method

protected OnRowCreated ( GridViewRowEventArgs e ) : void
e GridViewRowEventArgs
return void

OnRowDataBound() protected method

protected OnRowDataBound ( GridViewRowEventArgs e ) : void
e GridViewRowEventArgs
return void

OnRowDeleted() protected method

protected OnRowDeleted ( GridViewDeletedEventArgs e ) : void
e GridViewDeletedEventArgs
return void

OnRowDeleting() protected method

protected OnRowDeleting ( GridViewDeleteEventArgs e ) : void
e GridViewDeleteEventArgs
return void

OnRowEditing() protected method

protected OnRowEditing ( GridViewEditEventArgs e ) : void
e GridViewEditEventArgs
return void

OnRowUpdated() protected method

protected OnRowUpdated ( GridViewUpdatedEventArgs e ) : void
e GridViewUpdatedEventArgs
return void

OnRowUpdating() protected method

protected OnRowUpdating ( GridViewUpdateEventArgs e ) : void
e GridViewUpdateEventArgs
return void

OnSelectedIndexChanged() protected method

protected OnSelectedIndexChanged ( EventArgs e ) : void
e EventArgs
return void

OnSelectedIndexChanging() protected method

protected OnSelectedIndexChanging ( GridViewSelectEventArgs e ) : void
e GridViewSelectEventArgs
return void

OnSorted() protected method

protected OnSorted ( EventArgs e ) : void
e EventArgs
return void

OnSorting() protected method

protected OnSorting ( GridViewSortEventArgs e ) : void
e GridViewSortEventArgs
return void

PerformDataBinding() protected method

protected PerformDataBinding ( IEnumerable data ) : void
data IEnumerable
return void

PrepareControlHierarchy() protected method

protected PrepareControlHierarchy ( ) : void
return void

RaiseCallbackEvent() protected method

protected RaiseCallbackEvent ( string eventArgs ) : void
eventArgs string
return void

RaisePostBackEvent() protected method

protected RaisePostBackEvent ( string eventArgument ) : void
eventArgument string
return void

Render() protected method

protected Render ( HtmlTextWriter writer ) : void
writer HtmlTextWriter
return void

SaveControlState() protected method

protected SaveControlState ( ) : object
return object

SaveViewState() protected method

protected SaveViewState ( ) : object
return object

Sort() public method

public Sort ( string newSortExpression, SortDirection newSortDirection ) : void
newSortExpression string
newSortDirection SortDirection
return void

TrackViewState() protected method

protected TrackViewState ( ) : void
return void