menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataGridTemplateColumn - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DataGridTemplateColumn

    A column which is used to show any type of template.

    Inheritance
    System.Object
    DataGridColumn
    DataGridTemplateColumn
    Implements
    System.IDisposable
    Inherited Members
    DataGridColumn.ActualWidth
    DataGridColumn.ActualWidthProperty
    DataGridColumn.AllowEditing
    DataGridColumn.AllowEditingProperty
    DataGridColumn.AllowFocus
    DataGridColumn.AllowFocusProperty
    DataGridColumn.AllowSorting
    DataGridColumn.AllowSortingProperty
    DataGridColumn.CellPadding
    DataGridColumn.CellPaddingProperty
    DataGridColumn.CellStyle
    DataGridColumn.CellStyleProperty
    DataGridColumn.CellTextAlignment
    DataGridColumn.CellTextAlignmentProperty
    DataGridColumn.CellType
    DataGridColumn.ColumnWidthMode
    DataGridColumn.ColumnWidthModeProperty
    DataGridColumn.CultureInfo
    DataGridColumn.CultureInfoProperty
    DataGridColumn.DisplayBinding
    DataGridColumn.Dispose()
    DataGridColumn.Dispose(Boolean)
    DataGridColumn.Format
    DataGridColumn.FormatProperty
    DataGridColumn.GetFormattedValue(Object)
    DataGridColumn.GroupMode
    DataGridColumn.GroupModeProperty
    DataGridColumn.HeaderLineBreakMode
    DataGridColumn.HeaderLineBreakModeProperty
    DataGridColumn.HeaderPadding
    DataGridColumn.HeaderPaddingProperty
    DataGridColumn.HeaderStyle
    DataGridColumn.HeaderStyleProperty
    DataGridColumn.HeaderTemplate
    DataGridColumn.HeaderTemplateProperty
    DataGridColumn.HeaderText
    DataGridColumn.HeaderTextAlignment
    DataGridColumn.HeaderTextAlignmentProperty
    DataGridColumn.HeaderTextProperty
    DataGridColumn.LineBreakMode
    DataGridColumn.LineBreakModeProperty
    DataGridColumn.LoadUIView
    DataGridColumn.MappingName
    DataGridColumn.MappingNameProperty
    DataGridColumn.MaximumWidth
    DataGridColumn.MaximumWidthProperty
    DataGridColumn.MinimumWidth
    DataGridColumn.MinimumWidthProperty
    DataGridColumn.SetConverterForDisplayBinding()
    DataGridColumn.SortMode
    DataGridColumn.SortModeProperty
    DataGridColumn.UseBindingValue
    DataGridColumn.UseBindingValueProperty
    DataGridColumn.ValueBinding
    DataGridColumn.Visible
    DataGridColumn.VisibleProperty
    DataGridColumn.Width
    DataGridColumn.WidthProperty
    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 .

    Overrides
    DataGridColumn.CanEditCell()

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved