System.Web.UI.WebControls (system.web.dll)enum

This enumeration specifies the type of item for a row in a DataList, DataGrid, or Repeater control. It is not used for other list controls that derive from ListControl.

Item types include headers and footers, separators, and the controls used to move from one data page to the next (Pager). If an item is currently in edit mode, the value EditItem is returned; if the item is selected, SelectedItem is used. AlternatingItem indicates a alternating item, which will be an even-numbered item (counting is zero-based).

public enum ListItemType {
   Header = 0,
   Footer = 1,
   Item = 2,
   AlternatingItem = 3,
   SelectedItem = 4,
   EditItem = 5,
   Separator = 6,
   Pager = 7


System.Object System.ValueType System.Enum(System.IComparable, System.IFormattable, System.IConvertible) ListItemType

Returned By

DataGridItem.ItemType, DataListItem.ItemType, RepeaterItem.ItemType

Passed To

DataGrid.CreateItem( ), DataGridColumn.InitializeCell( ), DataGridItem.DataGridItem( ), DataList.CreateItem( ), DataListItem.DataListItem( ), IRepeatInfoUser.{GetItemStyle( ), RenderItem( )}, Repeater.CreateItem( ), RepeaterItem.RepeaterItem( )

    Part I: Introduction to ASP.NET
    Part III: Namespace Reference
    Chapter 40. The System.Web.UI.MobileControls Namespace
    Chapter 42. The System.Web.UI.WebControls Namespace