Redigera

Dela via


DataListItem.IDataItemContainer.DataItemIndex Property

Definition

For a description of this member, see DataItemIndex.

property int System::Web::UI::IDataItemContainer::DataItemIndex { int get(); };
int System.Web.UI.IDataItemContainer.DataItemIndex { get; }
member this.System.Web.UI.IDataItemContainer.DataItemIndex : int
 ReadOnly Property DataItemIndex As Integer Implements IDataItemContainer.DataItemIndex

Property Value

An integer representing the index of the data item bound to a control.

Implements

Remarks

Typically, you should use the DataListItem.ItemIndex property to retrieve the data-item index for a DataListItem object.

The IDataItemContainer.DataItemIndex member is an explicit interface member implementation. It can be used only when the DataListItem instance is cast to an IDataItemContainer interface.

Notes to Inheritors

To define a custom implementation for retrieving the data-item index for a DataListItem, override the ItemIndex member. The explicit interface implementation uses the ItemIndex property to retrieve the data-item index.

Applies to

See also