
DataGridItem | 843
WebControls
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Passed To
DataGrid.{OnCancelCommand( ), OnDeleteCommand( ), OnEditCommand( ),
OnItemCommand( ), OnUpdateCommand( )}, DataGridCommandEventHandler.
{BeginInvoke( ), Invoke( )}, DataGridSortCommandEventArgs.
DataGridSortCommandEventArgs( )
DataGridCommandEventHandler
System.Web.UI.WebControls (system.web.dll)
serializable
delegate
This delegate specifies the parameters for the event handler routine that handles the
ItemCommand, CancelCommand, DeleteCommand, EditCommand, and UpdateCommand events of the Data-
Grid control. This event handler receives additional information about the item that was
clicked.
Associated Events
DataGrid.{CancelCommand( ), DeleteCommand( ), EditCommand( ), ItemCommand( ),
UpdateCommand( )}
DataGridItem
System.Web.UI.WebControls (system.web.dll)
disposable
class
This class represents an individual item in the DataGrid control. You can access a DataGrid-
Item through the DataGrid.Items collection or from a DataGrid event handler.
The DataGridItem class inherits most of its properties from System.Web.UI.Control. In addition,
it provides an ItemIndex that gives its index in the DataGrid.Items collection, an ItemType prop-
erty that identifies what type of item this is (a header, footer, alternating row, etc.),
and a DataItem property