System.Web.UI.WebControls.DataListItem.ItemIndex Property

Gets the index of the System.Web.UI.WebControls.DataListItem object from the DataList.Items collection of the control.

Syntax

public virtual int ItemIndex { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the DataListItem.ItemIndex property to determine the index number of the System.Web.UI.WebControls.DataListItem object from the DataList.Items collection.

Note:

This property only applies to data items in the System.Web.UI.WebControls.DataList control. The DataListItem.ItemType property of the System.Web.UI.WebControls.DataListItem object must be set to ListItemType.Item, ListItemType.AlternatingItem, ListItemType.SelectedItem, or ListItemType.EditItem.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0