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.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

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