2X faster development
The ultimate WPF UI toolkit to boost your development speed.
You can display the row index value in RowHeaderCell by customizing its style with the binding of RowIndex to TextBlock.Text property like below, XAML: <!--Style of RowHeaderCell--> <Style TargetType="syncfusion:GridRowHeaderCell"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="syncfusion:GridRowHeaderCell"> <Border x:Name="PART_RowHeaderCellBorder" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"> <Grid> <!--RowIndex is displayed here --> <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding RowIndex}" TextAlignment="Center" /> </Grid> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style>
The index is displayed in RowHeaderCell based on the above customized style like below, Figure 1: Index value displayed on RowHeader cell Sample Links:
|
2X faster development
The ultimate WPF UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.