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.
- sender
- Documentation for this section has not yet been entered.
- e
- Documentation for this section has not yet been entered.
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>].