Class TreeGridTemplateColumn
Represents a column that contains template-specified cell content
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.TreeGrid
Assembly: Syncfusion.SfGrid.UWP.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 |
---|
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.
Properties
EditTemplate
Gets or sets the
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
By default, Record will be the DataContext for template. If SetCellBoundValue is true,
See Also
EditTemplateSelector
Gets or sets the
Declaration
public DataTemplateSelector EditTemplateSelector { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Controls.DataTemplateSelector | A custom |
See Also
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
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
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 |
---|---|---|
Windows.UI.Xaml.DependencyObject | d | The |
Windows.UI.Xaml.DependencyPropertyChangedEventArgs | e | The |
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 |
---|---|---|
Windows.UI.Xaml.DependencyObject | d | The |
Windows.UI.Xaml.DependencyPropertyChangedEventArgs | e | The Microsoft.UI.Xaml.DependencyPropertyChangedEventArgs that contains the data for the EditTemplateSelector property changes. |
SetDisplayBindingConverter()
Sets the converter for the
Declaration
protected override void SetDisplayBindingConverter()
Overrides
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()