Syncfusion.SfDataGrid.XForms
Members  Example 
Syncfusion.SfDataGrid.XForms Namespace : GridTemplateColumn Class

GridTemplateColumn Class

Represents a SfDataGrid column that hosts template-specified Content in its cells.
Syntax
public class GridTemplateColumn : GridColumn 
Remarks
Use GridTemplateColumn to display the value in the template of your requirement.

The GridTemplateColumn type enables you to create your own column types by specifying the cell template or cell template selector to use for displaying value. To specify the template that is used to display the contents of a cell, set the CellTemplate property. and to set the template selector, use CellTemplateSelector property.

Example
<syncfusion:GridTemplateColumn.CellTemplate>
  <DataTemplate>
    <Label Text = "{Binding CustomerID}" 
           TextColor="Black" 
           XAlign="Center" 
           YAlign="Center" />
  </DataTemplate>
</syncfusion:GridTemplateColumn.CellTemplate>
Inheritance Hierarchy

System.Object
   Xamarin.Forms.BindableObject
      Syncfusion.SfDataGrid.XForms.GridColumn
         Syncfusion.SfDataGrid.XForms.GridTemplateColumn

AssemblyVersion

Syncfusion.SfDataGrid.XForms: 17.1451.0.47

See Also