System.Web.UI.WebControls Namespace DetailsView Class
.NET Framework version 2.0
Occurs when a button within a DetailsView control is clicked.
[ VB ]
Public Event ItemCommand As DetailsViewCommandEventHandler
[ C# ]
public event DetailsViewCommandEventHandler ItemCommand;
[ C++ ]
public: __event DetailsViewCommandEventHandler* ItemCommand;
In [ JScript ], you can handle the events defined by a class, but you cannot define your own.
The ItemCommand event is raised whenever any button associated with an item in a DetailsView control is clicked.
This allows you to provide an event-handling method that performs a custom routine whenever this event occurs.
Information related to the ItemCommand event is passed via a DetailsViewCommandEventArgs object to the method assigned to handle the event. The following DetailsViewCommandEventArgs properties provide information specific to this event.
DetailsView Members