System.Web.UI.WebControls.GridView.RowDeleted Event

Occurs when a row's Delete button is clicked, but after the System.Web.UI.WebControls.GridView control deletes the row.

Syntax

public event GridViewDeletedEventHandler RowDeleted

Remarks

The GridView.RowDeleted event is raised when a row's Delete button is clicked, but after the System.Web.UI.WebControls.GridView control deletes the row. This enables you to provide an event-handling method that performs a custom routine, such as checking the results of the delete operation, whenever this event occurs.

A System.Web.UI.WebControls.GridViewDeletedEventArgs object is passed to the event-handling method, which enables you to determine the number of rows affected and any exceptions that might have occurred. You can also indicate whether the exception was handled in the event-handling method by setting the GridViewDeletedEventArgs.ExceptionHandled property of the System.Web.UI.WebControls.GridViewDeletedEventArgs object.

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0