'Declaration Public ReadOnly Property ItemIndex As Integer
'Usage Dim instance As RowSelector Dim value As Integer value = instance.ItemIndex
public int ItemIndex {get;}
'Declaration Public ReadOnly Property ItemIndex As Integer
'Usage Dim instance As RowSelector Dim value As Integer value = instance.ItemIndex
public int ItemIndex {get;}
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"> <Grid.Resources> <xcdg:DataGridCollectionViewSource x:Key="cvs_orders" Source="{Binding Source={x:Static Application.Current}, Path=Orders}" /> <Style x:Key="itemIndexSelectorStyle" TargetType="{x:Type xcdg:RowSelector}"> <Setter Property="Content" Value="{Binding RelativeSource={RelativeSource Self}, Path=ItemIndex}"/> </Style> <Style TargetType="{x:Type xcdg:DataRow}"> <Setter Property="xcdg:RowSelectorPane.RowSelectorStyle" Value="{StaticResource itemIndexSelectorStyle}" /> </Style> </Grid.Resources> <xcdg:DataGridControl x:Name="OrdersGrid" ItemsSource="{Binding Source={StaticResource cvs_orders}}" /> </Grid>
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