The members of System.Web.UI.WebControls.DataGrid are listed below.
See Also: Inherited members from System.Web.UI.WebControls.BaseDataList
DataGrid() |
Initializes a new instance of the System.Web.UI.WebControls.DataGrid class. |
const | CancelCommandName | string.
Represents the Cancel command name. This field is read-only. |
const | DeleteCommandName | string.
Represents the Delete command name. This field is read-only. |
const | EditCommandName | string.
Represents the Edit command name. This field is read-only. |
const | NextPageCommandArgument | string.
Represents the Next command argument. This field is read-only. |
const | PageCommandName | string.
Represents the Page command name. This field is read-only. |
const | PrevPageCommandArgument | string.
Represents the Prev command argument. This field is read-only. |
const | SelectCommandName | string.
Represents the Select command name. This field is read-only. |
const | SortCommandName | string.
Represents the Sort command name. This field is read-only. |
const | UpdateCommandName | string.
Represents the Update command name. This field is read-only. |
AllowCustomPaging | bool.
Gets or sets a value that indicates whether custom paging is enabled. | |
AllowPaging | bool.
Gets or sets a value that indicates whether paging is enabled. | |
AllowSorting | bool.
Gets or sets a value that indicates whether sorting is enabled. | |
[read-only] | AlternatingItemStyle | TableItemStyle.
Gets the style properties for alternating items in the System.Web.UI.WebControls.DataGrid control. |
AutoGenerateColumns | bool.
Gets or sets a value that indicates whether System.Web.UI.WebControls.BoundColumn objects are automatically created and displayed in the System.Web.UI.WebControls.DataGrid control for each field in the data source. | |
BackImageUrl | string.
Gets or sets the URL of an image to display in the background of the System.Web.UI.WebControls.DataGrid control. | |
[read-only] | Columns | DataGridColumnCollection.
Gets a collection of objects that represent the columns of the System.Web.UI.WebControls.DataGrid control. |
CurrentPageIndex | int.
Gets or sets the index of the currently displayed page. | |
EditItemIndex | int.
Gets or sets the index of an item in the System.Web.UI.WebControls.DataGrid control to edit. | |
[read-only] | EditItemStyle | TableItemStyle.
Gets the style properties of the item selected for editing in the System.Web.UI.WebControls.DataGrid control. |
[read-only] | FooterStyle | TableItemStyle.
Gets the style properties of the footer section in the System.Web.UI.WebControls.DataGrid control. |
[read-only] | HeaderStyle | TableItemStyle.
Gets the style properties of the heading section in the System.Web.UI.WebControls.DataGrid control. |
[read-only] | Items | DataGridItemCollection.
Gets a collection of System.Web.UI.WebControls.DataGridItem objects that represent the individual items in the System.Web.UI.WebControls.DataGrid control. |
[read-only] | ItemStyle | TableItemStyle.
Gets the style properties of the items in the System.Web.UI.WebControls.DataGrid control. |
[read-only] | PageCount | int.
Gets the total number of pages required to display the items in the System.Web.UI.WebControls.DataGrid control. |
[read-only] | PagerStyle | DataGridPagerStyle.
Gets the style properties of the paging section of the System.Web.UI.WebControls.DataGrid control. |
PageSize | int.
Gets or sets the number of items to display on a single page of the System.Web.UI.WebControls.DataGrid control. | |
SelectedIndex | int.
Gets or sets the index of the selected item in the System.Web.UI.WebControls.DataGrid control. | |
[read-only] | SelectedItem | DataGridItem.
Gets a System.Web.UI.WebControls.DataGridItem object that represents the selected item in the System.Web.UI.WebControls.DataGrid control. |
[read-only] | SelectedItemStyle | TableItemStyle.
Gets the style properties of the currently selected item in the System.Web.UI.WebControls.DataGrid control. |
ShowFooter | bool.
Gets or sets a value that indicates whether the footer is displayed in the System.Web.UI.WebControls.DataGrid control. | |
ShowHeader | bool.
Gets or sets a value that indicates whether the header is displayed in the System.Web.UI.WebControls.DataGrid control. | |
VirtualItemCount | int.
Gets or sets the virtual number of items in the System.Web.UI.WebControls.DataGrid control when custom paging is used. |
[read-only] override | TagKey | System.Web.UI.HtmlTextWriterTag.
Gets the System.Web.UI.HtmlTextWriterTag value for the System.Web.UI.WebControls.DataGrid control. |
CreateColumnSet(PagedDataSource, bool)
| ||
override | CreateControlHierarchy(bool)
| |
override | CreateControlStyle()
| |
CreateItem(int, int, ListItemType)
| ||
InitializeItem(DataGridItem, DataGridColumn[])
| ||
InitializePager(DataGridItem, int, PagedDataSource)
| ||
override | LoadViewState(object)
| |
override | OnBubbleEvent(object, EventArgs)
| |
OnCancelCommand(DataGridCommandEventArgs)
| ||
OnDeleteCommand(DataGridCommandEventArgs)
| ||
OnEditCommand(DataGridCommandEventArgs)
| ||
OnItemCommand(DataGridCommandEventArgs)
| ||
OnItemCreated(DataGridItemEventArgs)
| ||
OnItemDataBound(DataGridItemEventArgs)
| ||
OnPageIndexChanged(DataGridPageChangedEventArgs)
| ||
OnSortCommand(DataGridSortCommandEventArgs)
| ||
OnUpdateCommand(DataGridCommandEventArgs)
| ||
override | PrepareControlHierarchy()
| |
override | SaveViewState()
| |
override | TrackViewState()
|
CancelCommand |
Occurs when the Cancel button is clicked for an item in the System.Web.UI.WebControls.DataGrid control. | |
DeleteCommand |
Occurs when the Delete button is clicked for an item in the System.Web.UI.WebControls.DataGrid control. | |
EditCommand |
Occurs when the Edit button is clicked for an item in the System.Web.UI.WebControls.DataGrid control. | |
ItemCommand |
Occurs when any button is clicked in the System.Web.UI.WebControls.DataGrid control. | |
ItemCreated |
Occurs on the server when an item in the System.Web.UI.WebControls.DataGrid control is created. | |
ItemDataBound |
Occurs after an item is data bound to the System.Web.UI.WebControls.DataGrid control. | |
PageIndexChanged |
Occurs when one of the page selection elements is clicked. | |
SortCommand |
Occurs when a column is sorted. | |
UpdateCommand |
Occurs when the Update button is clicked for an item in the System.Web.UI.WebControls.DataGrid control. |