Class TreeGridUnboundView
Represents a class that provides the implementation of UnboundView in SfTreeGrid.
Inherited Members
Namespace: Syncfusion.UI.Xaml.TreeGrid
Assembly: Syncfusion.Grid.WinUI.dll
Syntax
public class TreeGridUnboundView : TreeGridView, ITreeGridViewNotifier, IEditableCollectionView, IDisposable
Constructors
TreeGridUnboundView(SfTreeGrid)
Initializes a new instance of TreeGridUnboundView class.
Declaration
public TreeGridUnboundView(SfTreeGrid treeGrid)
Parameters
Type | Name | Description |
---|---|---|
SfTreeGrid | treeGrid |
Properties
SortComparers
Gets the collection of comparer to sort the data based on custom logic .
Declaration
public override SortComparers SortComparers { get; }
Property Value
Type |
---|
SortComparers |
Overrides
Remarks
A comparer that are added to SortComparers collection to apply custom Sorting based on the specified column name and sort direction.
SortDescriptions
Gets the collection of SortColumnDescription objects to sort the data programmatically.
Declaration
public override SortColumnDescriptions SortDescriptions { get; }
Property Value
Type | Description |
---|---|
SortColumnDescriptions | The collection of SortColumnDescription object to sort the data programmatically.The default value is null. |
Overrides
TreeGrid
An instance of the SfTreeGrid class.
Declaration
protected SfTreeGrid TreeGrid { get; set; }
Property Value
Type |
---|
SfTreeGrid |
Methods
AddNode(TreeNode, Object)
Add the data to the child collection of particular tree node.
Declaration
public void AddNode(TreeNode node, object data)
Parameters
Type | Name | Description |
---|---|---|
TreeNode | node | The parent node. this is null if root node needs to be added. |
System.Object | data | the data. |
AttachTreeView(Object)
Associates treeGrid in view.
Declaration
public override void AttachTreeView(object treeGrid)
Parameters
Type | Name | Description |
---|---|---|
System.Object | treeGrid |
Overrides
CreateItemPropertiesProvider()
Creates the item properties provider.
Declaration
protected override IPropertyAccessProvider CreateItemPropertiesProvider()
Returns
Type | Description |
---|---|
IPropertyAccessProvider | IPropertyAccessProvider. |
Overrides
DetachTreeView()
Detach the grid instance present in the view while disposing the view.
Declaration
public override void DetachTreeView()
Overrides
InsertNode(TreeNode, Object, Int32)
Insert the data into the child collection of particular tree node at the specified index.
Declaration
public void InsertNode(TreeNode node, object data, int index)
Parameters
Type | Name | Description |
---|---|---|
TreeNode | node | The parent node. this is null if root node needs to be inserted. |
System.Object | data | the data. |
System.Int32 | index | the index. |
MoveNode(TreeNode, Int32, Int32)
Moves the child node from an index to the another index in child nodes of particular tree node.
Declaration
protected override void MoveNode(TreeNode node, int oldStartingIndex, int newStartingIndex)
Parameters
Type | Name | Description |
---|---|---|
TreeNode | node | The parent node. this is null if root node needs to be moved. |
System.Int32 | oldStartingIndex | the oldIndex. |
System.Int32 | newStartingIndex | the newIndex. |
Overrides
RemoveNode(TreeNode, Object)
Remove the data from the child collection of particular tree node.
Declaration
protected override void RemoveNode(TreeNode node, object data)
Parameters
Type | Name | Description |
---|---|---|
TreeNode | node | The parent node. this is null if root node needs to be removed. |
System.Object | data | the data. |
Overrides
ReplaceNode(TreeNode, Object, Int32)
Replaces the node at specified index with the data in child nodes of the particular tree node.
Declaration
public void ReplaceNode(TreeNode node, object data, int index)
Parameters
Type | Name | Description |
---|---|---|
TreeNode | node | The parent node. this is null if root node needs to be replaced. |
System.Object | data | the data. |
System.Int32 | index | the index. |
ResetNodes(TreeNode)
Clear child nodes of the particular node.
Declaration
protected override void ResetNodes(TreeNode node)
Parameters
Type | Name | Description |
---|---|---|
TreeNode | node | The parent node. this is null if root nodes need to be cleared. |
Overrides
UpdateNodesOnPropertyChange(Object, PropertyChangedEventArgs, TreeNode)
Check TreeGridView on property changes and do the actions.
Declaration
protected override void UpdateNodesOnPropertyChange(object sender, PropertyChangedEventArgs e, TreeNode treeNode = null)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | updated record. |
System.ComponentModel.PropertyChangedEventArgs | e | PropertyChangedEventArgs. |
TreeNode | treeNode | Tree node. |