Export (0) Print
Expand All

GridView Events

  Name Description
Public event DataBinding  Occurs when the server control binds to a data source. (Inherited from Control.)
Public event DataBound  Occurs after the server control binds to a data source. (Inherited from BaseDataBoundControl.)
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 Init  Occurs when the server control is initialized, which is the first step in its lifecycle. (Inherited from 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 pager buttons is clicked, but after the GridView control handles the paging operation.
Public event PageIndexChanging Occurs when one of the pager buttons is clicked, but before the GridView control handles the paging operation.
Public event PreRender  Occurs after the Control object is loaded but prior to rendering. (Inherited from Control.)
Public event RowCancelingEdit Occurs when the Cancel button of a row in edit mode is clicked, but before the row exits edit mode.
Public event RowCommand Occurs when a button is clicked in a GridView control.
Public event RowCreated Occurs when a row is created in a GridView control.
Public event RowDataBound Occurs when a data row is bound to data in a GridView control.
Public event RowDeleted Occurs when a row's Delete button is clicked, but after the GridView control deletes the row.
Public event RowDeleting Occurs when a row's Delete button is clicked, but before the GridView control deletes the row.
Public event RowEditing Occurs when a row's Edit button is clicked, but before the GridView control enters edit mode.
Public event RowUpdated Occurs when a row's Update button is clicked, but after the GridView control updates the row.
Public event RowUpdating Occurs when a row's Update button is clicked, but before the GridView control updates the row.
Public event SelectedIndexChanged Occurs when a row's Select button is clicked, but after the GridView control handles the select operation.
Public event SelectedIndexChanging Occurs when a row's Select button is clicked, but before the GridView control handles the select operation.
Public event Sorted Occurs when the hyperlink to sort a column is clicked, but after the GridView control handles the sort operation.
Public event Sorting Occurs when the hyperlink to sort a column is clicked, but before the GridView control handles the sort operation.
Public event Unload  Occurs when the server control is unloaded from memory. (Inherited from Control.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft