Skip to content

Commit 06f7acd

Browse files
authored
Merge pull request #2 from SyncfusionExamples/Malini-SF4235-patch-1
Update README.md
2 parents 9fe6655 + 51367f9 commit 06f7acd

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# How to to display the RowIndex in GridRowHeaderCell when combined with SfDatapager in WPF DataGrid
2-
3-
You can display row numbers in the GridRowHeaderCell by customizing the RowHeaderCell style. This can be achieved by binding the RowIndex to the TextBlock.Text property and using a MultiValueConverter. Additionally, you can handle the PageIndexChanged event in SfDataPager. This is demonstrated below.
1+
# How to display the RowIndex in GridRowHeaderCell when combined with SfDatapager in WPF DataGrid?
42

3+
You can display row numbers in the [GridRowHeaderCell](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Grid.GridRowHeaderCell.html) by customizing the `GridRowHeaderCell` style. This can be achieved by binding the `RowIndex` to the `TextBlock.Text` property and using a MultiValueConverter. Additionally, you can handle the PageIndexChanged event in `SfDataPager`.
54

65
```XML
76
<Style TargetType="syncfusion:GridRowHeaderCell">
@@ -13,7 +12,7 @@ You can display row numbers in the GridRowHeaderCell by customizing the RowHeade
1312
BorderBrush="{TemplateBinding BorderBrush}"
1413
BorderThickness="{TemplateBinding BorderThickness}">
1514
<Grid>
16-
<!--//RowIndex is displayed here-->
15+
<!--RowIndex is displayed here-->
1716
<TextBlock HorizontalAlignment="Center"
1817
VerticalAlignment="Center"
1918
Foreground="White"
@@ -67,7 +66,7 @@ You can display row numbers in the GridRowHeaderCell by customizing the RowHeade
6766

6867
```
6968

70-
The index is displayed in RowHeaderCell based on the above customized style like below,
69+
The index is displayed in `GridRowHeaderCell` based on the above customized style like below,
7170
![Shows the DisplayRowIndexInGridRowHeaderCell image](GridRowHeaderCellImage.gif)
7271

7372
Take a moment to peruse the [WPF DataGrid - Row Header](https://help.syncfusion.com/wpf/datagrid/rows#row-header) documentation, to learn more about Row Header code examples.

0 commit comments

Comments
 (0)