DataGrid Events
.NET Framework 3.0
| Name | Description | |
|---|---|---|
| CancelCommand | Occurs when the Cancel button is clicked for an item in the DataGrid control. |
| DataBinding | Occurs when the server control binds to a data source. (inherited from Control) |
| DeleteCommand | Occurs when the Delete button is clicked for an item in the DataGrid control. |
| Disposed | Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested. (inherited from Control) |
| EditCommand | Occurs when the Edit button is clicked for an item in the DataGrid control. |
| Init | Occurs when the server control is initialized, which is the first step in its lifecycle. (inherited from Control) |
| ItemCommand | Occurs when any button is clicked in the DataGrid control. |
| ItemCreated | Occurs on the server when an item in the DataGrid control is created. |
| ItemDataBound | Occurs after an item is data bound to the DataGrid control. |
| Load | Occurs when the server control is loaded into the Page object. (inherited from Control) |
| PageIndexChanged | Occurs when one of the page selection elements is clicked. |
| PreRender | Occurs after the Control object is loaded but prior to rendering. (inherited from Control) |
| SelectedIndexChanged | Occurs when a different item is selected in a data listing control between posts to the server. (inherited from BaseDataList) |
| SortCommand | Occurs when a column is sorted. |
| Unload | Occurs when the server control is unloaded from memory. (inherited from Control) |
| UpdateCommand | Occurs when the Update button is clicked for an item in the DataGrid control. |
Community Additions
ADD
Show: