System.Web.UI.WebControls.DataListCommandEventHandler Delegate

Represents the method that will handle the DataList.CancelCommand, DataList.DeleteCommand, DataList.EditCommand, DataList.ItemCommand, and DataList.UpdateCommand events of a System.Web.UI.WebControls.DataList control.

Syntax

public delegate void DataListCommandEventHandler (object sender, DataListCommandEventArgs e)

Parameters

sender
Documentation for this section has not yet been entered.
e
Documentation for this section has not yet been entered.

Remarks

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

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

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

The DataList.ItemCommand event is raised when any button for an item in the System.Web.UI.WebControls.DataList control is clicked. This allows you to programmatically test for when a specific command button is clicked and take appropriate action. This event is commonly used to handle custom command buttons for the System.Web.UI.WebControls.DataList control.

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

When you create a System.Web.UI.WebControls.DataListCommandEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event handler delegates, see [<topic://cpconEventsDelegates>].

Requirements

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