System.Web.UI.WebControls.DataGrid.DeleteCommand Event

Occurs when the Delete button is clicked for an item in the System.Web.UI.WebControls.DataGrid control.

Syntax

public event DataGridCommandEventHandler DeleteCommand

Remarks

The DataGrid.DeleteCommand event is raised when the Delete button is clicked for an item in the System.Web.UI.WebControls.DataGrid control.

A typical handler for the DataGrid.DeleteCommand event removes the selected item from the data source and then rebinds the data to the System.Web.UI.WebControls.DataGrid control.

For more information about handling events, see [<topic://cpconEventsOverview>].

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0