I just want to add a index column in wpf toolkit datagrid to show row index of each data in datagrid. How?
<dg:DataGrid ItemsSource="{Binding List}"
SelectionMode="Extended"
IsReadOnly="True"
AutoGenerateColumns="False"
HorizontalAlignment="Left"
>
<dg:DataGrid.Columns>
**<dg:DataGridTextColumn Header="Row Index"></dg:DataGridTextColumn>**
<dg:DataGridTextColumn Header="Branch" Binding="{Binding Branch.Id}"></dg:DataGridTextColumn>
<dg:DataGridTextColumn Header="Count" Binding="{Binding RequestCount}"></dg:DataGridTextColumn>
</dg:DataGrid.Columns>
</dg:DataGrid>