
850
|
Chapter 42: The System.Web.UI.WebControls Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Associated Events
DataList.{CancelCommand( ), DeleteCommand( ), EditCommand( ), ItemCommand( ),
UpdateCommand( )}
DataListItem
System.Web.UI.WebControls (system.web.dll)
disposable
class
This class represents an individual item in the DataList control. You can access it
through the DataList.Items collection or from a DataList event.
DataListItem inherits most of its properties from System.Web.UI.Control. In addition, it
provides an ItemIndex that gives its index in the DataList.Items collection, an ItemType
prop900erty that identifies what type of item this is (a header, footer, alternating row,
etc.), and a DataItem property that returns the corresponding data item (such as a System.
Data.DataRowView instance).
Hierarchy
System.Object ➝ System.Web.UI.Control(System.ComponentModel.IComponent, System.
IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor)
➝
WebControl(System.Web.UI.IAttributeAccessor) ➝ DataListItem(System.Web.UI.
INamingContainer)
Returned By
DataList.{CreateItem( ), SelectedItem}, DataListCommandEventArgs.Item, DataListItemCol-
lection.this, DataListItemEventArgs.Item
Passed To
DataList.InitializeItem( ), DataListCommandEventArgs.DataListCommandEventArgs( ), Data-
ListItemEventArgs.DataListItemEventArgs( ...