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

Inheritance: System.Web.UI.WebControls.BaseDataList, INamingContainer
Mostrar archivo Open project: runefs/Marvin Class Usage Examples

Private Properties

Property Type Description
CreateItem System.Web.UI.WebControls.DataGridItem
InitializeNextPrevPager System.Web.UI.WebControls.TableCell
InitializeNumericPager System.Web.UI.WebControls.TableCell

Public Methods

Method Description
AddColumnsFromSource ( System.Web.UI.WebControls.PagedDataSource data_source ) : void
AddPropertyToColumns ( ) : void
AddPropertyToColumns ( PropertyDescriptor prop, bool tothis ) : void
AdjustItemTypes ( int prev_select, int new_select ) : void
ApplyColumnStyle ( System.Web.UI.WebControls.TableCellCollection cells, ListItemType type ) : void
ApplyItemStyle ( System.Web.UI.WebControls.DataGridItem item ) : void

Protected Methods

Method Description
CreateColumnSet ( System.Web.UI.WebControls.PagedDataSource dataSource, bool useDataSource ) : ArrayList
CreateControlHierarchy ( bool useDataSource ) : void
CreateControlStyle ( ) : System.Web.UI.WebControls.Style
CreateItem ( int itemIndex, int dataSourceIndex, ListItemType itemType ) : System.Web.UI.WebControls.DataGridItem
InitializeItem ( System.Web.UI.WebControls.DataGridItem item, System.Web.UI.WebControls.DataGridColumn columns ) : void
InitializePager ( System.Web.UI.WebControls.DataGridItem item, int columnSpan, System.Web.UI.WebControls.PagedDataSource pagedDataSource ) : void
LoadViewState ( object savedState ) : void
OnBubbleEvent ( object source, EventArgs e ) : bool
OnCancelCommand ( System.Web.UI.WebControls.DataGridCommandEventArgs e ) : void
OnDeleteCommand ( System.Web.UI.WebControls.DataGridCommandEventArgs e ) : void
OnEditCommand ( System.Web.UI.WebControls.DataGridCommandEventArgs e ) : void
OnItemCommand ( System.Web.UI.WebControls.DataGridCommandEventArgs e ) : void
OnItemCreated ( System.Web.UI.WebControls.DataGridItemEventArgs e ) : void
OnItemDataBound ( System.Web.UI.WebControls.DataGridItemEventArgs e ) : void
OnPageIndexChanged ( System.Web.UI.WebControls.DataGridPageChangedEventArgs e ) : void
OnSortCommand ( System.Web.UI.WebControls.DataGridSortCommandEventArgs e ) : void
OnUpdateCommand ( System.Web.UI.WebControls.DataGridCommandEventArgs e ) : void
PrepareControlHierarchy ( ) : void
SaveViewState ( ) : object
TrackViewState ( ) : void

Private Methods

Method Description
CreateItem ( int item_index, int data_source_index, ListItemType type, bool data_bind, object data_item, System.Web.UI.WebControls.PagedDataSource paged ) : System.Web.UI.WebControls.DataGridItem
InitializeNextPrevPager ( System.Web.UI.WebControls.DataGridItem item, int columnSpan, System.Web.UI.WebControls.PagedDataSource paged ) : System.Web.UI.WebControls.TableCell
InitializeNumericPager ( System.Web.UI.WebControls.DataGridItem item, int columnSpan, System.Web.UI.WebControls.PagedDataSource paged ) : System.Web.UI.WebControls.TableCell

Method Details

AddColumnsFromSource() public method

public AddColumnsFromSource ( System.Web.UI.WebControls.PagedDataSource data_source ) : void
data_source System.Web.UI.WebControls.PagedDataSource
return void

AddPropertyToColumns() public method

public AddPropertyToColumns ( ) : void
return void

AddPropertyToColumns() public method

public AddPropertyToColumns ( PropertyDescriptor prop, bool tothis ) : void
prop System.ComponentModel.PropertyDescriptor
tothis bool
return void

AdjustItemTypes() public method

public AdjustItemTypes ( int prev_select, int new_select ) : void
prev_select int
new_select int
return void

ApplyColumnStyle() public method

public ApplyColumnStyle ( System.Web.UI.WebControls.TableCellCollection cells, ListItemType type ) : void
cells System.Web.UI.WebControls.TableCellCollection
type ListItemType
return void

ApplyItemStyle() public method

public ApplyItemStyle ( System.Web.UI.WebControls.DataGridItem item ) : void
item System.Web.UI.WebControls.DataGridItem
return void

CreateColumnSet() protected method

protected CreateColumnSet ( System.Web.UI.WebControls.PagedDataSource dataSource, bool useDataSource ) : ArrayList
dataSource System.Web.UI.WebControls.PagedDataSource
useDataSource bool
return System.Collections.ArrayList

CreateControlHierarchy() protected method

protected CreateControlHierarchy ( bool useDataSource ) : void
useDataSource bool
return void

CreateControlStyle() protected method

protected CreateControlStyle ( ) : System.Web.UI.WebControls.Style
return System.Web.UI.WebControls.Style

CreateItem() protected method

protected CreateItem ( int itemIndex, int dataSourceIndex, ListItemType itemType ) : System.Web.UI.WebControls.DataGridItem
itemIndex int
dataSourceIndex int
itemType ListItemType
return System.Web.UI.WebControls.DataGridItem

InitializeItem() protected method

protected InitializeItem ( System.Web.UI.WebControls.DataGridItem item, System.Web.UI.WebControls.DataGridColumn columns ) : void
item System.Web.UI.WebControls.DataGridItem
columns System.Web.UI.WebControls.DataGridColumn
return void

InitializePager() protected method

protected InitializePager ( System.Web.UI.WebControls.DataGridItem item, int columnSpan, System.Web.UI.WebControls.PagedDataSource pagedDataSource ) : void
item System.Web.UI.WebControls.DataGridItem
columnSpan int
pagedDataSource System.Web.UI.WebControls.PagedDataSource
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 System.EventArgs
return bool

OnCancelCommand() protected method

protected OnCancelCommand ( System.Web.UI.WebControls.DataGridCommandEventArgs e ) : void
e System.Web.UI.WebControls.DataGridCommandEventArgs
return void

OnDeleteCommand() protected method

protected OnDeleteCommand ( System.Web.UI.WebControls.DataGridCommandEventArgs e ) : void
e System.Web.UI.WebControls.DataGridCommandEventArgs
return void

OnEditCommand() protected method

protected OnEditCommand ( System.Web.UI.WebControls.DataGridCommandEventArgs e ) : void
e System.Web.UI.WebControls.DataGridCommandEventArgs
return void

OnItemCommand() protected method

protected OnItemCommand ( System.Web.UI.WebControls.DataGridCommandEventArgs e ) : void
e System.Web.UI.WebControls.DataGridCommandEventArgs
return void

OnItemCreated() protected method

protected OnItemCreated ( System.Web.UI.WebControls.DataGridItemEventArgs e ) : void
e System.Web.UI.WebControls.DataGridItemEventArgs
return void

OnItemDataBound() protected method

protected OnItemDataBound ( System.Web.UI.WebControls.DataGridItemEventArgs e ) : void
e System.Web.UI.WebControls.DataGridItemEventArgs
return void

OnPageIndexChanged() protected method

protected OnPageIndexChanged ( System.Web.UI.WebControls.DataGridPageChangedEventArgs e ) : void
e System.Web.UI.WebControls.DataGridPageChangedEventArgs
return void

OnSortCommand() protected method

protected OnSortCommand ( System.Web.UI.WebControls.DataGridSortCommandEventArgs e ) : void
e System.Web.UI.WebControls.DataGridSortCommandEventArgs
return void

OnUpdateCommand() protected method

protected OnUpdateCommand ( System.Web.UI.WebControls.DataGridCommandEventArgs e ) : void
e System.Web.UI.WebControls.DataGridCommandEventArgs
return void

PrepareControlHierarchy() protected method

protected PrepareControlHierarchy ( ) : void
return void

SaveViewState() protected method

protected SaveViewState ( ) : object
return object

TrackViewState() protected method

protected TrackViewState ( ) : void
return void