WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TreeGridTemplateColumn

    Show / Hide Table of Contents

    Class TreeGridTemplateColumn

    Represents a column that contains template-specified cell content

    Inheritance
    System.Object
    SfGridColumnBase<SfGridBase>
    GridColumnBase
    TreeGridColumn
    TreeGridTextColumnBase
    TreeGridTemplateColumn
    Implements
    System.IDisposable
    IFilterDefinition
    Inherited Members
    TreeGridTextColumnBase.TextTrimmingProperty
    TreeGridTextColumnBase.TextWrappingProperty
    TreeGridTextColumnBase.TextDecorationsProperty
    TreeGridTextColumnBase.TextTrimming
    TreeGridTextColumnBase.TextWrapping
    TreeGridTextColumnBase.TextDecorations
    TreeGridColumn.FilterPopupStyleProperty
    TreeGridColumn.FilterPopupTemplateProperty
    TreeGridColumn.ColumnSizerProperty
    TreeGridColumn.AllowDraggingProperty
    TreeGridColumn.AllowResizingProperty
    TreeGridColumn.AllowFilteringProperty
    TreeGridColumn.ImmediateUpdateColumnFilterProperty
    TreeGridColumn.AllowBlankFiltersProperty
    TreeGridColumn.OnCellTemplateSelectorChanged(DependencyPropertyChangedEventArgs)
    TreeGridColumn.CreateInstanceCore()
    TreeGridColumn.CanAllowSpinOnMouseScroll()
    TreeGridColumn.OnCellTemplateChanged(DependencyPropertyChangedEventArgs)
    TreeGridColumn.SetCellType(String)
    TreeGridColumn.Dispose(Boolean)
    TreeGridColumn.CellType
    TreeGridColumn.FilterPopupStyle
    TreeGridColumn.FilterPopupTemplate
    TreeGridColumn.ColumnSizer
    TreeGridColumn.AllowDragging
    TreeGridColumn.AllowResizing
    TreeGridColumn.AllowFiltering
    TreeGridColumn.TreeGrid
    TreeGridColumn.FilterPredicates
    TreeGridColumn.FilterBehavior
    TreeGridColumn.ColumnFilter
    TreeGridColumn.ColumnMemberType
    TreeGridColumn.FilteredFrom
    TreeGridColumn.ImmediateUpdateColumnFilter
    TreeGridColumn.AllowBlankFilters
    GridColumnBase.ActualWidthProperty
    GridColumnBase.MappingNameProperty
    GridColumnBase.HeaderTextProperty
    GridColumnBase.AllowEditingProperty
    GridColumnBase.IsReadOnlyProperty
    GridColumnBase.GridValidationModeProperty
    GridColumnBase.UpdateTriggerProperty
    GridColumnBase.PaddingProperty
    GridColumnBase.AllowFocusProperty
    GridColumnBase.HeaderTemplateProperty
    GridColumnBase.CellTemplateProperty
    GridColumnBase.SetCellBoundValueProperty
    GridColumnBase.CellTemplateSelectorProperty
    GridColumnBase.CellStyleProperty
    GridColumnBase.CellStyleSelectorProperty
    GridColumnBase.HeaderStyleProperty
    GridColumnBase.AllowSortingProperty
    GridColumnBase.VerticalAlignmentProperty
    GridColumnBase.TextAlignmentProperty
    GridColumnBase.HorizontalHeaderContentAlignmentProperty
    GridColumnBase.WidthProperty
    GridColumnBase.IsHiddenProperty
    GridColumnBase.MaximumWidthProperty
    GridColumnBase.MinimumWidthProperty
    GridColumnBase.ShowHeaderToolTipProperty
    GridColumnBase.ToolTipTemplateProperty
    GridColumnBase.HeaderToolTipTemplateProperty
    GridColumnBase.ToolTipTemplateSelectorProperty
    GridColumnBase.ShowToolTipProperty
    GridColumnBase.SetCellBoundToolTipProperty
    GridColumnBase.OnUpdateBindingInfo(DependencyObject, DependencyPropertyChangedEventArgs)
    GridColumnBase.SetValueBindingConverter()
    GridColumnBase.UpdateBindingForValidation(GridValidationMode)
    GridColumnBase.GetTypeface(GridColumnBase, GridCell)
    GridColumnBase.IsAutoGenerated
    GridColumnBase.IsTemplate
    GridColumnBase.ActualWidth
    GridColumnBase.MappingName
    GridColumnBase.HeaderText
    GridColumnBase.AllowEditing
    GridColumnBase.IsReadOnly
    GridColumnBase.GridValidationMode
    GridColumnBase.UpdateTrigger
    GridColumnBase.Padding
    GridColumnBase.AllowFocus
    GridColumnBase.HeaderTemplate
    GridColumnBase.CellTemplate
    GridColumnBase.SetCellBoundValue
    GridColumnBase.CellTemplateSelector
    GridColumnBase.CellStyle
    GridColumnBase.CellStyleSelector
    GridColumnBase.HeaderStyle
    GridColumnBase.AllowSorting
    GridColumnBase.VerticalAlignment
    GridColumnBase.TextAlignment
    GridColumnBase.HorizontalHeaderContentAlignment
    GridColumnBase.Width
    GridColumnBase.IsHidden
    GridColumnBase.MaximumWidth
    GridColumnBase.MinimumWidth
    GridColumnBase.ValueBinding
    GridColumnBase.DisplayBinding
    GridColumnBase.ShowHeaderToolTip
    GridColumnBase.ToolTipTemplate
    GridColumnBase.HeaderToolTipTemplate
    GridColumnBase.ToolTipTemplateSelector
    GridColumnBase.ShowToolTip
    GridColumnBase.SetCellBoundToolTip
    SfGridColumnBase<SfGridBase>.Dispose()
    Namespace: Syncfusion.UI.Xaml.TreeGrid
    Assembly: Syncfusion.SfGrid.WPF.dll
    Syntax
    public class TreeGridTemplateColumn : TreeGridTextColumnBase, IDisposable, IFilterDefinition

    Constructors

    TreeGridTemplateColumn()

    Initializes a new instance of the TreeGridTemplateColumn class.

    Declaration
    public TreeGridTemplateColumn()

    Fields

    EditTemplateProperty

    Identifies the EditTemplate dependency property.

    Declaration
    public static readonly DependencyProperty EditTemplateProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty
    Remarks

    The identifier for the EditTemplate dependency property.

    EditTemplateSelectorProperty

    Identifies the EditTemplateSelector dependency property.

    Declaration
    public static readonly DependencyProperty EditTemplateSelectorProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty
    Remarks

    The identifier for the EditTemplateSelector 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
    System.Windows.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 class.
    By default, Record will be the DataContext for template. If SetCellBoundValue is true, will be the data context.

    See Also
    EditTemplateSelector

    EditTemplateSelector

    Gets or sets the System.Windows.DataTemplate 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
    System.Windows.Controls.DataTemplateSelector

    A custom System.Windows.Controls.DataTemplateSelector object that provides logic and returns a System.Windows.DataTemplate that is in edit mode of column. The default is null.

    See Also
    EditTemplate

    Methods

    CanEditCell()

    Determines whether the cells in TreeGridTemplateColumn can be edited.

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

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

    Overrides
    GridColumnBase.CanEditCell()

    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
    TreeGridColumn.CanFocus()

    OnEditTemplateChanged(DependencyObject, DependencyPropertyChangedEventArgs)

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

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

    The DependencyObject that contains the TreeGridTemplateColumn.

    System.Windows.DependencyPropertyChangedEventArgs e

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

    OnEditTemplateSelectorChanged(DependencyObject, DependencyPropertyChangedEventArgs)

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

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

    The DependencyObject that contains the TreeGridTemplateColumn.

    System.Windows.DependencyPropertyChangedEventArgs e

    The Microsoft.UI.Xaml.DependencyPropertyChangedEventArgs that contains the data for the EditTemplateSelector property changes.

    SetDisplayBindingConverter()

    Sets the converter for the of TreeGridTemplateColumn.

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

    You can override this method to specify the converter for .

    UpdateBindingBasedOnAllowEditing()

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

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

    Implements

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