DataItemIndex Property
Collapse the table of content
Expand the table of content

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.

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:
© 2016 Microsoft