JavaScript Editor
JavaScript Debugger|
| ||
A data grid control that displays the items from data source in a table. Here is the inheritance hierarchy of the DataGrid class:
Object
Control
WebControl
BaseDataList
DataGrid
You can find the notable public properties of DataGrid objects in Table 23.4 and their notable methods in Table 23.5. (This class has no non-inherited events.) Note that as with other Web server controls, I am not listing the notable properties, methods, and events this class inherits from the Control and WebControl classes-you can find them in Chapter 15, Tables 15.1 to 15.5.
|
Method |
Means |
|---|---|
|
CancelCommand |
Occurs when Cancel is clicked. |
|
DeleteCommand |
Occurs when Delete is clicked. |
|
EditCommand |
Occurs when Edit is clicked. |
|
ItemCommand |
Occurs when any button is clicked. |
|
ItemCreated |
Occurs when an item is created. |
|
ItemDataBound |
Occurs when an item is data bound to the data grid. |
|
PageIndexChanged |
Occurs when a page selection element is clicked. |
|
SortCommand |
Occurs when a column is sorted. |
|
UpdateCommand |
Occurs when Update is clicked. |
|
| ||
Free JavaScript Editor
JavaScript Editor