menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridTemplateColumn - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridTemplateColumn

    Represents a column that contains template-specified cell content

    Inheritance
    System.Object
    SfGridColumnBase<SfGridBase>
    GridColumnBase
    GridColumn
    GridTextColumnBase
    GridTemplateColumn
    GridCheckBoxSelectorColumn
    GridUnBoundColumn
    Implements
    System.IDisposable
    INotifyDependencyPropertyChanged
    IFilterDefinition
    Inherited Members
    GridColumn.AllowBlankFilters
    GridColumn.AllowBlankFiltersProperty
    GridColumn.AllowDragging
    GridColumn.AllowDraggingProperty
    GridColumn.AllowFiltering
    GridColumn.AllowFilteringProperty
    GridColumn.AllowGrouping
    GridColumn.AllowGroupingProperty
    GridColumn.AllowResizing
    GridColumn.AllowResizingProperty
    GridColumn.CanAllowSpinOnMouseScroll()
    GridColumn.CanEndEditColumn()
    GridColumn.CellType
    GridColumn.ColumnFilter
    GridColumn.ColumnMemberType
    GridColumn.ColumnSizer
    GridColumn.ColumnSizerProperty
    GridColumn.DataGrid
    GridColumn.Dispose(Boolean)
    GridColumn.FilterBehavior
    GridColumn.FilteredFrom
    GridColumn.FilterPopupStyle
    GridColumn.FilterPopupStyleProperty
    GridColumn.FilterPopupTemplate
    GridColumn.FilterPopupTemplateProperty
    GridColumn.FilterPredicates
    GridColumn.FilterRowCellStyle
    GridColumn.FilterRowCellStyleProperty
    GridColumn.FilterRowCondition
    GridColumn.FilterRowConditionProperty
    GridColumn.FilterRowEditorType
    GridColumn.FilterRowOptionsVisibility
    GridColumn.FilterRowOptionsVisibilityProperty
    GridColumn.FilterRowText
    GridColumn.FilterRowTextProperty
    GridColumn.GetFilterRowOptionsVisibility()
    GridColumn.GetRowFilterType()
    GridColumn.GroupMode
    GridColumn.GroupModeProperty
    GridColumn.ImmediateUpdateColumnFilter
    GridColumn.ImmediateUpdateColumnFilterProperty
    GridColumn.IsCaseSensitiveFilterRow
    GridColumn.IsCaseSensitiveFilterRowProperty
    GridColumn.IsHiddenColumn()
    GridColumn.OnCellTemplateChanged(DependencyPropertyChangedEventArgs)
    GridColumn.OnCellTemplateSelectorChanged(DependencyPropertyChangedEventArgs)
    GridColumn.OnDependencyPropertyChanged(String, DependencyPropertyChangedEventArgs)
    GridColumn.SetCellType(String)
    GridColumn.SetFilterRowText(String)
    GridColumn.SortMode
    GridColumn.SortModeProperty
    GridColumn.UseBindingValue
    GridColumn.UseBindingValueProperty
    GridColumnBase.ActualWidth
    GridColumnBase.ActualWidthProperty
    GridColumnBase.AllowEditing
    GridColumnBase.AllowEditingProperty
    GridColumnBase.AllowFocus
    GridColumnBase.AllowFocusProperty
    GridColumnBase.AllowSorting
    GridColumnBase.AllowSortingProperty
    GridColumnBase.CanEditCell()
    GridColumnBase.CellStyle
    GridColumnBase.CellStyleProperty
    GridColumnBase.CellStyleSelector
    GridColumnBase.CellStyleSelectorProperty
    GridColumnBase.CellTemplate
    GridColumnBase.CellTemplateProperty
    GridColumnBase.CellTemplateSelector
    GridColumnBase.CellTemplateSelectorProperty
    GridColumnBase.DisplayBinding
    GridColumnBase.GridValidationMode
    GridColumnBase.GridValidationModeProperty
    GridColumnBase.HeaderStyle
    GridColumnBase.HeaderStyleProperty
    GridColumnBase.HeaderTemplate
    GridColumnBase.HeaderTemplateProperty
    GridColumnBase.HeaderText
    GridColumnBase.HeaderTextProperty
    GridColumnBase.HeaderToolTipTemplate
    GridColumnBase.HeaderToolTipTemplateProperty
    GridColumnBase.HorizontalHeaderContentAlignment
    GridColumnBase.HorizontalHeaderContentAlignmentProperty
    GridColumnBase.IsAutoGenerated
    GridColumnBase.IsHidden
    GridColumnBase.IsHiddenProperty
    GridColumnBase.IsReadOnly
    GridColumnBase.IsReadOnlyProperty
    GridColumnBase.IsTemplate
    GridColumnBase.MappingName
    GridColumnBase.MappingNameProperty
    GridColumnBase.MaximumWidth
    GridColumnBase.MaximumWidthProperty
    GridColumnBase.MinimumWidth
    GridColumnBase.MinimumWidthProperty
    GridColumnBase.OnUpdateBindingInfo(DependencyObject, DependencyPropertyChangedEventArgs)
    GridColumnBase.Padding
    GridColumnBase.PaddingProperty
    GridColumnBase.SetCellBoundToolTip
    GridColumnBase.SetCellBoundToolTipProperty
    GridColumnBase.SetCellBoundValue
    GridColumnBase.SetCellBoundValueProperty
    GridColumnBase.SetValueBindingConverter()
    GridColumnBase.ShowHeaderToolTip
    GridColumnBase.ShowHeaderToolTipProperty
    GridColumnBase.ShowToolTip
    GridColumnBase.ShowToolTipProperty
    GridColumnBase.TextAlignment
    GridColumnBase.TextAlignmentProperty
    GridColumnBase.ToolTipTemplate
    GridColumnBase.ToolTipTemplateProperty
    GridColumnBase.ToolTipTemplateSelector
    GridColumnBase.ToolTipTemplateSelectorProperty
    GridColumnBase.UpdateBindingForValidation(GridValidationMode)
    GridColumnBase.UpdateTrigger
    GridColumnBase.UpdateTriggerProperty
    GridColumnBase.ValueBinding
    GridColumnBase.VerticalAlignment
    GridColumnBase.VerticalAlignmentProperty
    GridColumnBase.Width
    GridColumnBase.WidthProperty
    GridTextColumnBase.TextTrimming
    GridTextColumnBase.TextTrimmingProperty
    GridTextColumnBase.TextWrapping
    GridTextColumnBase.TextWrappingProperty
    SfGridColumnBase<SfGridBase>.Dispose()
    Namespace: Syncfusion.UI.Xaml.Grid
    Assembly: Syncfusion.SfGrid.UWP.dll
    Syntax
    public class GridTemplateColumn : GridTextColumnBase, IDisposable, INotifyDependencyPropertyChanged, IFilterDefinition

    Constructors

    GridTemplateColumn()

    Initializes a new instance of the GridTemplateColumn class.

    Declaration
    public GridTemplateColumn()

    Fields

    EditTemplateProperty

    Identifies the EditTemplate dependency property.

    Declaration
    public static readonly DependencyProperty EditTemplateProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the EditTemplate dependency property.

    EditTemplateSelectorProperty

    Identifies the EditTemplateSelector dependency property.

    Declaration
    public static readonly DependencyProperty EditTemplateSelectorProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the EditTemplateSelector dependency property.

    HorizontalAlignmentProperty

    Identifies the HorizontalAlignment dependency property.

    Declaration
    public static readonly DependencyProperty HorizontalAlignmentProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the HorizontalAlignment dependency property.

    Properties

    EditTemplate

    Gets or sets the System.Windows.DataTemplate to load in editing mode.

    Declaration
    public DataTemplate EditTemplate { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.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

    The decides whether the data context of the EditTemplate is based on Record or DataContextHelper class.
    By default, Record will be the DataContext for template. If SetCellBoundValue is true, DataContextHelper will be the data context.

    See Also
    CellTemplateSelector
    CellTemplate

    EditTemplateSelector

    Gets or sets the by choosing a template based on bound data objects and data-bound element in editing mode.

    Declaration
    public DataTemplateSelector EditTemplateSelector { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Controls.DataTemplateSelector

    A custom object that provides logic and returns a that is in edit mode of column. The default is null.

    See Also
    EditTemplate
    CellTemplateSelector
    CellTemplate

    HorizontalAlignment

    Gets or sets the horizontal alignment for the column.

    Declaration
    public HorizontalAlignment HorizontalAlignment { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.HorizontalAlignment

    One of the System.Windows.HorizontalAlignment enumeration that specifies the horizontal alignment of the column. The default value is Stretch.

    Methods

    CanEditCell(Int32)

    Determines whether the cells in GridTemplateColumn can be edited.

    Declaration
    protected override bool CanEditCell(int rowIndex = -1)
    Parameters
    Type Name Description
    System.Int32 rowIndex

    The corresponding rowIndex of the editable cell.

    Returns
    Type Description
    System.Boolean

    Returns true if the template column has loaded with EditTemplate or EditTemplateSelector. If the GridTemplateColumn loaded with , returns false.

    Overrides
    GridColumn.CanEditCell(Int32)

    CanFocus()

    Determines whether the GridTemplateColumn can receive focus.

    Declaration
    protected override bool CanFocus()
    Returns
    Type Description
    System.Boolean

    Returns true if the column is loaded with editor in its CellTemplate.

    Overrides
    GridColumn.CanFocus()

    OnEditTemplateChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Dependency call back for EditTemplate property. Invoked when the dependency property value changed in the GridTemplateColumn.

    Declaration
    public static void OnEditTemplateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DependencyObject d

    The DependencyObject that contains the GridTemplateColumn.

    Windows.UI.Xaml.DependencyPropertyChangedEventArgs e

    The that contains the data for the EditTemplate property changes.

    OnEditTemplateSelectorChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Dependency call back for EditTemplateSelector property. Invoked when the dependency property value changed in the GridTemplateColumn.

    Declaration
    public static void OnEditTemplateSelectorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DependencyObject d

    The DependencyObject that contains the GridTemplateColumn.

    Windows.UI.Xaml.DependencyPropertyChangedEventArgs e

    The System.Windows.DependencyPropertyChangedEventArgs that contains the data for the EditTemplateSelector property changes.

    SetDisplayBindingConverter()

    Sets the converter for the of GridTemplateColumn.

    Declaration
    protected override void SetDisplayBindingConverter()
    Overrides
    GridTextColumnBase.SetDisplayBindingConverter()
    Remarks

    You can override this method to specify the converter for .

    UpdateBindingBasedOnAllowEditing()

    Updates the binding for the AllowEdit property changes in the GridTemplateColumn.

    Declaration
    protected override void UpdateBindingBasedOnAllowEditing()
    Overrides
    GridColumn.UpdateBindingBasedOnAllowEditing()

    Implements

    System.IDisposable
    INotifyDependencyPropertyChanged
    IFilterDefinition

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved