System.Web.UI.WebControls Namespace
Provides data for the command events of a DataGrid.
The DataGridCommandEventArgs provides event data for the following command events of a DataGrid.
The generic ItemCommand event is raised whenever any button associated with an item in the DataGrid is clicked. This provides for programmatically determining which specific command button is clicked and take appropriate action. This event is commonly used to handle custom command buttons for the DataGrid control.
In addition, a CancelCommand, DeleteCommand, EditCommand, or UpdateCommand event is raised whenever the corresponding cancel, delete, edit, or update button associated with an item in the DataGrid is clicked.
For a list of initial property values for an instance of DataGridCommandEventArgs, see the DataGridCommandEventArgs constructor.
For more information about handling events, see Web Forms Events Model.
The following example demonstrates how to specify and code a handler for the ItemCommand event to display additional information about the currently selected item in the DataGrid.
Show me
DataGrid DataGridCommandEventHandler CancelCommand DeleteCommand EditCommand ItemCommand UpdateCommand
© 2000-2010 Rey Nuñez All rights reserved.If you have any question, comment or suggestion about this site, please send us a note
You can help support asp.net.ph