System.Web.UI.WebControls.DataListCommandEventArgs Class

Provides data for the DataList.CancelCommand, DataList.DeleteCommand, DataList.EditCommand, DataList.ItemCommand, and DataList.UpdateCommand events of the System.Web.UI.WebControls.DataList control. This class cannot be inherited.

See Also: DataListCommandEventArgs Members

Syntax

public class DataListCommandEventArgs : CommandEventArgs

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.

For a list of initial property values for an instance of System.Web.UI.WebControls.DataListCommandEventArgs, see the DataListCommandEventArgs.#ctor(DataListItem, object, CommandEventArgs) constructor.

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