This documentation is archived and is not being maintained.

ListItemType Enumeration

Specifies the type of an item in a list control.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public enum class ListItemType

Member nameDescription
HeaderA header for the list control. It is not data-bound.
FooterA footer for the list control. It is not data-bound.
ItemAn item in the list control. It is data-bound.
AlternatingItemAn item in alternating (zero-based even-indexed) cells. It is data-bound.
SelectedItemA selected item in the list control. It is data-bound.
EditItemAn item in a list control currently in edit mode. It is data-bound.
SeparatorA separator between items in a list control. It is not data-bound.
PagerA pager that displays the controls to navigate to different pages associated with the DataGrid control. It is not data-bound.

The ListItemType enumeration represents the different items that can be included in a list control, such as the DataGrid, DataList, and Repeater controls. A typical list control consists of cells that contain elements represented by this enumeration.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: