Friday, September 13, 2013

GridView Events

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview_events.aspx

 NameDescription
Public eventCallingDataMethodsOccurs when data methods are being called. (Inherited from DataBoundControl.)
Public eventCreatingModelDataSourceOccurs when the ModelDataSource object is being created. (Inherited from DataBoundControl.)
Public eventDataBindingOccurs when the server control binds to a data source. (Inherited from Control.)
Public eventDataBoundOccurs after the server control binds to a data source. (Inherited from BaseDataBoundControl.)
Public eventDisposedOccurs 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 eventInitOccurs when the server control is initialized, which is the first step in its lifecycle. (Inherited from Control.)
Public eventLoadOccurs when the server control is loaded into the Page object. (Inherited from Control.)
Public eventPageIndexChangedOccurs when one of the pager buttons is clicked, but after the GridView control handles the paging operation.
Public eventPageIndexChangingOccurs when one of the pager buttons is clicked, but before the GridView control handles the paging operation.
Public eventPreRenderOccurs after the Control object is loaded but prior to rendering. (Inherited from Control.)
Public eventRowCancelingEditOccurs when the Cancel button of a row in edit mode is clicked, but before the row exits edit mode.
Public eventRowCommandOccurs when a button is clicked in a GridView control.
Public eventRowCreatedOccurs when a row is created in a GridView control.
Public eventRowDataBoundOccurs when a data row is bound to data in a GridView control.
Public eventRowDeletedOccurs when a row's Delete button is clicked, but after the GridView control deletes the row.
Public eventRowDeletingOccurs when a row's Delete button is clicked, but before the GridView control deletes the row.
Public eventRowEditingOccurs when a row's Edit button is clicked, but before the GridView control enters edit mode.
Public eventRowUpdatedOccurs when a row's Update button is clicked, but after the GridView control updates the row.
Public eventRowUpdatingOccurs when a row's Update button is clicked, but before the GridView control updates the row.
Public eventSelectedIndexChangedOccurs when a row's Select button is clicked, but after the GridView control handles the select operation.
Public eventSelectedIndexChangingOccurs when a row's Select button is clicked, but before the GridView control handles the select operation.
Public eventSortedOccurs when the hyperlink to sort a column is clicked, but after the GridView control handles the sort operation.
Public eventSortingOccurs when the hyperlink to sort a column is clicked, but before the GridView control handles the sort operation.
Public eventUnloadOccurs when the server control is unloaded from memory. (Inherited from Control.)

No comments:

Post a Comment