wpf-11981-controls-and-libraries-data-grid-grid-view-data-layout-nodes-filter-nodes.md
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.
Use the TreeListView.FilteringMode property to specify how nodes are filtered.
View Example: How to Specify Nodes Filter Mode
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.
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.
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.
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.
See Also