DataGrid.DeleteCommand Event
.NET Framework 3.0
Occurs when the Delete button is clicked for an item in the DataGrid control.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public: event DataGridCommandEventHandler^ DeleteCommand { void add (DataGridCommandEventHandler^ value); void remove (DataGridCommandEventHandler^ value); }
/** @event */ public void add_DeleteCommand (DataGridCommandEventHandler value) /** @event */ public void remove_DeleteCommand (DataGridCommandEventHandler value)
In JScript, you can handle the events defined by a class, but you cannot define your own.
Not applicable.
The DeleteCommand event is raised when the Delete button is clicked for an item in the DataGrid control.
A typical handler for the DeleteCommand event removes the selected item from the data source and then rebinds the data to the DataGrid control.
For more information about handling events, see Consuming Events.
Community Additions
ADD
Show: