Hi Eduardo,
Thanks for using Syncfusion products.
If you want to display the row index in the GridTemplateColumn, you can use the following Binding to get the RowIndex property of ColumnBase from the ancestor of the GridCell.
Refer to the following code snippet,
Code Snippet:
<syncfusion:GridTemplateColumn MappingName="Name">
<syncfusion:GridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding Path=ColumnBase.RowIndex,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=syncfusion:GridCell}}" />
</DataTemplate>
</syncfusion:GridTemplateColumn.CellTemplate>
</syncfusion:GridTemplateColumn> |
Regards,
Dinesh Babu Yadav