ListViewDataItem.DataItemIndex Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

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

.NET Framework
Available since 3.5
Return to top
Show: