DataListItem.IDataItemContainer.DataItemIndex Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
An integer representing the index of the data item bound to a control.
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.
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.
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: