The DetailsView control raises events that occur when the current record is displayed or changed. Events are also raised when a command control such as a Button that is part of the DetailsView control has been clicked. The following table describes the events exposed by the DetailsView control.
Occurs when a Delete button (a button with its CommandName property set to "Delete") within a DetailsView control is clicked, but before the delete operation.
Occurs when an Insert button (a button with its CommandName property set to "Insert") within a DetailsView control is clicked, but before the insert operation.
Occurs when an Update button (a button with its CommandName property set to "Update") within a DetailsView control is clicked, but before the update operation.