System.Web.UI.WebControls.DataList.DeleteCommand Event

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

Syntax

public event DataListCommandEventHandler DeleteCommand

Remarks

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

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

For more information about handling events, see How to: Consume Events in a Web Forms Application.

Requirements

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