DetailsView Events

The DetailsView type exposes the following members.

  Name Description
Public event CallingDataMethods Occurs when data methods are being called. (Inherited from DataBoundControl.)
Public event CreatingModelDataSource Occurs when the ModelDataSource object is being created. (Inherited from DataBoundControl.)
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 ItemCommand Occurs when a button within a DetailsView control is clicked.
Public event ItemCreated Occurs when a record is created in a DetailsView control.
Public event ItemDeleted Occurs when a Delete button within a DetailsView control is clicked, but after the delete operation.
Public event ItemDeleting Occurs when a Delete button within a DetailsView control is clicked, but before the delete operation.
Public event ItemInserted Occurs when an Insert button within a DetailsView control is clicked, but after the insert operation.
Public event ItemInserting Occurs when an Insert button within a DetailsView control is clicked, but before the insert operation.
Public event ItemUpdated Occurs when an Update button within a DetailsView control is clicked, but after the update operation.
Public event ItemUpdating Occurs when an Update button within a DetailsView control is clicked, but before the update operation.
Public event Load Occurs when the server control is loaded into the Page object. (Inherited from Control.)
Public event ModeChanged Occurs when a DetailsView control attempts to change between edit, insert, and read-only mode, but after the CurrentMode property is updated.
Public event ModeChanging Occurs when a DetailsView control attempts to change between edit, insert, and read-only mode, but before the CurrentMode property is updated.
Public event PageIndexChanged Occurs when the value of the PageIndex property changes after a paging operation.
Public event PageIndexChanging Occurs when the value of the PageIndex property changes before a paging operation.
Public event PreRender Occurs after the Control object is loaded but prior to rendering. (Inherited from Control.)
Public event Unload Occurs when the server control is unloaded from memory. (Inherited from Control.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft