Filter Nodes
- 2 minutes to read
You can filter nodes in the TreeListView in the same way as rows in the TableView. Refer to the Filtering and Searching section for more information.
Filter Modes
Use the TreeListView.FilteringMode property to specify how nodes are filtered.
Nodes Mode (Default)
Set the TreeListView.FilteringMode property to TreeListFilteringMode.Nodes to enable Nodes mode.
The TreeListView displays only nodes that meet the filter criteria. A node at the hierarchy’s highest level that meets the filter criteria becomes the root node. The node’s nearest child that meets the filter criteria changes the hierarchy level to the next level down from the root.
ParentBranch Mode
Set the TreeListView.FilteringMode property to TreeListFilteringMode.ParentBranch to enable ParentBranch mode.
The TreeListView displays a node that meets the filter criteria and all its parent nodes, even if they do not meet the filter criteria.
EntireBranch Mode
Set the TreeListView.FilteringMode property to TreeListFilteringMode.EntireBranch to enable EntireBranch mode.
The TreeListView displays a node that meets the filter criteria and all its parent and child nodes, even if they do not meet the filter criteria.
Recursive Mode
Set the TreeListView.FilteringMode property to TreeListFilteringMode.Recursive to enable Recursive mode.
The TreeListView displays a node that meets the filter criteria only if its parent nodes also meet the filter criteria.