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
# How to to display the RowIndex in GridRowHeaderCell when combined with SfDatapager in WPF DataGrid
2
2
3
-
You can display the row index value in the RowHeaderCell by customizing its style with the binding of **RowIndex** to the **TextBlock**.**Text** property, as shown in the link below:
3
+
Your requirement is to display row numbers in the GridRowHeaderCell. This functionality can be achieved by customizing the RowHeaderCell style with the binding of RowIndex to the TextBlock.Text property then using a MultiValueConverter and handling the PageIndexChanged event in SfDataPager, as demonstrated below:
4
4
5
-
[Display RowIndex at RowHeaderCell](https://support.syncfusion.com/kb/article/5182/how-to-display-rowindex-at-rowheadercell-in-sfdatagrid-in-wpf-)
6
-
7
-
Currently, we do not have direct support to display the number of data in the GridRowHeaderCell when combined with SfDataPager. However, you can achieve this functionality by using a MultivalueConverter and handling the PageIndexChanged event in SfDataPager, as demonstrated below:
@@ -38,8 +35,6 @@ Currently, we do not have direct support to display the number of data in the Gr
38
35
```
39
36
40
37
The index is displayed in RowHeaderCell based on the above customized style like below,
41
-

42
-
43
-

38
+

44
39
45
-
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.
40
+
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