Event |
Description |
ItemCommand |
Occurs when a button within a FormView control is clicked. This event is often used to perform a task when a button is clicked in the control. |
ItemCreated |
Occurs after all FormViewRow objects are created in the FormView control. This event is often used to modify the values of a record before it is displayed. |
ItemDeleted |
Occurs when a Delete button ( a button with its CommandName property set to "Delete" ) is clicked, but after the FormView control deletes the record from the data source. This event is often used to check the results of the delete operation. |
ItemDeleting |
Occurs when a Delete button is clicked, but before the FormView control deletes the record from the data source. This event is often used to cancel the delete operation. |
ItemInserted |
Occurs when an Insert button ( a button with its CommandName property set to "Insert" ) is clicked, but after the FormView control inserts the record. This event is often used to check the results of the insert operation. |
ItemInserting |
Occurs when an Insert button is clicked, but before the FormView control inserts the record. This event is often used to cancel the insert operation. |
ItemUpdated |
Occurs when an Update button ( a button with its CommandName property set to "Update" ) is clicked, but after the FormView control updates the row. This event is often used to check the results of the update operation. |
ItemUpdating |
Occurs when an Update button is clicked, but before the FormView control updates the record. This event is often used to cancel the update operation. |
ModeChanged |
Occurs after the FormView control changes modes ( to edit, insert, or read-only mode ). This event is often used to perform a task when the FormView control changes modes. |
ModeChanging |
Occurs before the FormView control changes modes ( to edit, insert, or read-only mode ). This event is often used to cancel a mode change. |
PageIndexChanged |
Occurs when one of the pager buttons is clicked, but after the FormView control handles the paging operation. This event is commonly used when you need to perform a task after the user navigates to a different record in the control. |
PageIndexChanging |
Occurs when one of the pager buttons is clicked, but before the FormView control handles the paging operation. This event is often used to cancel the paging operation. |