Hi Fernando,
Thanks for contacting Syncfusion support,
We have analyzed your query. We can achieve your requirement by Enabling RowHeader when Group the columns also you need to add the style to display the row number on it. Please refer the below code snippet to achieve your requirement.
Code snippet[C#]:
this.grid.GroupColumnDescriptions.CollectionChanged += GroupColumnDescriptions_CollectionChanged; if ((sender as GroupColumnDescriptions).Count > 0) this.grid.ShowRowHeader = true; else this.grid.ShowRowHeader = false; |
We have prepared a sample based on your requirement and you can download it from below location
Sample: SfDataGrid_RowHeader.zip
You can also refer the below documentation link,
Documentation Link: http://help.syncfusion.com/ug/wpf/documents/rowheader.htm
Please let us know if you have any other queries,
Regards,
Saravanan.M
Hi Fernando,
Thanks for your update,
We have analyzed your requirement and you could not show the number in GridIndentCell directly .But you can achieve it by workaround. We have prepared a sample based on your requirement and you can download it from below location.
Sample Location: SfDataGrid_Number.zip
Please let us know if you have any other queries,
Regards,
Saravanan.M
<syncfusion:GridUnBoundColumn HeaderText="Pos" Expression="{Binding Converter={StaticResource GroupNumber}, ConverterParameter={RelativeSource Self}}">