'Declaration
Public ReadOnly Property ItemIndex As Integer
'Usage
Dim instance As RowSelector
Dim value As Integer
value = instance.ItemIndex
Property Value
A zero-based value representing the index of the RowSelector's associated data item.
Example
All examples in this topic assume that the grid is bound to the Orders table of the Northwind database, unless stated otherwise.
The following example demonstrates how to display a row's visual index in its corresponding row selector by creating a style targeting the RowSelector type that displays the value of its ItemIndex property as its content. The style is then assigned to the RowSelectorPane.RowSelectorStyle attached property, which is set by the implict DataRow style.
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2