Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ListViewDataItem.DataItemIndex Property

Gets the index of the DataItem in the underlying data source object.

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

public override int DataItemIndex { get; }

Property Value

Type: System.Int32
The zero-based index of the DataItem in the underlying data source object.

Implements

IDataItemContainer.DataItemIndex

Use the DataItemIndex property to determine the index of the DataItem in the underlying data source object.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5
Show:
© 2015 Microsoft