Syncfusion.SfDataGrid.XForms
Example 

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.
Syntax
public Xamarin.Forms.DataTemplate RowHeaderTemplate {get; set;}

Property Value

The template that displays the contents of a RowHeader.
Remarks
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.
Example
<sfgrid:SfDataGrid ShowRowHeader="True">
            
<sfgrid:SfDataGrid.RowHeaderTemplate>
    <DataTemplate>
      <Label Text = "{Binding Index}" 
             HorizontalTextAlignment = "Center" 
             VerticalTextAlignment = "Center" 
             />
    </DataTemplate>
</sfgrid:SfDataGrid.RowHeaderTemplate>
            
</sfgrid:SfDataGrid>
AssemblyVersion

Syncfusion.SfDataGrid.XForms: 17.2451.0.34

See Also