Helpers in WinUI TreeGrid (SfTreeGrid)
13 Apr 20211 minute to read
SfTreeGrid has TreeGridIndexResolver static class present in the Syncfusion.UI.Xaml.TreeGrid namespace has some extension methods to resolve from row or column index to node or visible column index and vice-versa.
For example, you can get a node from its row index using the GetNodeAtRowIndex method.
Resolves the node index from the row index. When row index does not find any record, it returns -1. The NodeIndex denotes the index of node in
Resolves the row index from the node index associated with
Resolves the row index from the data associated with
Resolves the row index from the node associated with
Resolves column index from the grid column index associated with
|ResolveToStartColumnIndex()||Returns the start column index of the VisibleColumn.|
|GetHeaderIndex()||Returns the header row index.|
|GetNodeAtRowIndex(int rowIndex)||Gets the tree node based on the row index.|
This method is associated with relinquishes memory and clears all references associated with treegrid. When you call this method, it releases all references for treegrid. So, the memory occupied using treegrid is reclaimed. You should call the SfTreeGrid.Dispose method to release the memory.