You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff 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?
4
2
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`.
5
4
6
5
```XML
7
6
<StyleTargetType="syncfusion:GridRowHeaderCell">
@@ -13,7 +12,7 @@ You can display row numbers in the GridRowHeaderCell by customizing the RowHeade
@@ -67,7 +66,7 @@ You can display row numbers in the GridRowHeaderCell by customizing the RowHeade
67
66
68
67
```
69
68
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,
71
70

72
71
73
72
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