ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources]

G. andrew Duthie; matthew Macdonald

نسخه متنی -صفحه : 873/ 782
نمايش فراداده

ListItemTypeserializable

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 }

Hierarchy

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( )