System.Web.UI.WebControls.DetailsViewCommandEventHandler Delegate

Represents the method that handles the DetailsView.ItemCommand event of a System.Web.UI.WebControls.DetailsView control.

Syntax

public delegate void DetailsViewCommandEventHandler (object sender, DetailsViewCommandEventArgs e)

Parameters

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

Remarks

The System.Web.UI.WebControls.DetailsView control raises the DetailsView.ItemCommand event when a button within a System.Web.UI.WebControls.ButtonField, System.Web.UI.WebControls.CommandField, or System.Web.UI.WebControls.TemplateField row field is clicked. This allows you to provide an event handler that performs a custom routine whenever this event occurs.

Note:

The System.Web.UI.WebControls.DetailsView control also raises other specialized events when certain buttons are clicked (buttons with the CommandName property set to "Delete", "Insert", "Page", or "Update"). When using one of these buttons, you should consider using one of the specialized events provided by the control (such as DetailsView.ItemDeleted or DetailsView.ItemDeleting).

When you create a System.Web.UI.WebControls.DetailsViewCommandEventHandler 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 Events and Delegates.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0