Class DataGridTemplateColumn
A column which is used to show any type of template.
Implements
Inherited Members
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class DataGridTemplateColumn : DataGridColumn, IDisposable
Constructors
DataGridTemplateColumn()
Initializes a new instance of the DataGridTemplateColumn class.
Declaration
public DataGridTemplateColumn()
Properties
CellTemplate
Gets or sets the template that is used to display the contents of a cell.
Declaration
public DataTemplate CellTemplate { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Controls.DataTemplate |
Remarks
You can directly assign the Microsoft.Maui.Controls.DataTemplateSelector to choose the different Microsoft.Maui.Controls.DataTemplate based on cells.
EditTemplate
Gets or sets the Microsoft.Maui.Controls.DataTemplate to load in editing mode.
Declaration
public DataTemplate EditTemplate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.DataTemplate | The template that is used to display the contents of cell in a column that is in editing mode. The default is null. |
Remarks
To specify the template that is used to display the contents of a cell when entering edit mode, set the EditTemplate property.
Methods
CanEditCell()
Determines whether the column is editable.
Declaration
protected override bool CanEditCell()
Returns
Type | Description |
---|---|
System.Boolean | Returns true if all the cells with in the column is editable . |