Export (0) Print
Expand All
1 out of 4 rated this helpful - Rate this topic

DataGrid Events

  Name Description
Public event CancelCommand Occurs when the Cancel button is clicked for an item in the DataGrid control.
Public event DataBinding  Occurs when the server control binds to a data source. (Inherited from Control.)
Public event DeleteCommand Occurs when the Delete button is clicked for an item in the DataGrid control.
Public event 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.)
Public event EditCommand Occurs when the Edit button is clicked for an item in the DataGrid control.
Public event Init  Occurs when the server control is initialized, which is the first step in its lifecycle. (Inherited from Control.)
Public event ItemCommand Occurs when any button is clicked in the DataGrid control.
Public event ItemCreated Occurs on the server when an item in the DataGrid control is created.
Public event ItemDataBound Occurs after an item is data bound to the DataGrid control.
Public event Load  Occurs when the server control is loaded into the Page object. (Inherited from Control.)
Public event PageIndexChanged Occurs when one of the page selection elements is clicked.
Public event PreRender  Occurs after the Control object is loaded but prior to rendering. (Inherited from Control.)
Public event SelectedIndexChanged  Occurs when a different item is selected in a data listing control between posts to the server. (Inherited from BaseDataList.)
Public event SortCommand Occurs when a column is sorted.
Public event Unload  Occurs when the server control is unloaded from memory. (Inherited from Control.)
Public event UpdateCommand Occurs when the Update button is clicked for an item in the DataGrid control.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.