RowHeaderTemplate Property

Gets or sets the template that is used to display the contents of a row header. By default, nothing will be displayed in the row header. However, when this property is set, SfDataGrid loads the template as the Content of the row header cells.
public Xamarin.Forms.DataTemplate RowHeaderTemplate {get; set;}

Property Value

The template that displays the contents of a RowHeader.
To include the RowHeader column to SfDataGrid, you need to set the ShowRowHeader to true. Initially when you set the SfDataGrid.ShowRowHeader = true, you will be able to see empty cells in front of the rows. SfDataGrid enables the user to set the Content and the view to be loaded in the RowHeader by using RowHeaderTemplate property.
<sfgrid:SfDataGrid ShowRowHeader="True">
      <Label Text = "{Binding Index}" 
             HorizontalTextAlignment = "Center" 
             VerticalTextAlignment = "Center" 

Syncfusion.SfDataGrid.XForms: 17.2451.0.34

See Also