Back to Devexpress

TreeList.FilterNodes() Method

windowsforms-devexpress-dot-xtratreelist-dot-treelist-2689a11b.md

latest2.4 KB
Original Source

TreeList.FilterNodes() Method

Forces the Tree List control to re-filter its data.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
public virtual void FilterNodes()
vb
Public Overridable Sub FilterNodes

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FilterNodes() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-tokenedit-dropdown-with-treelist/CS/TokenEditTest/CustomTokenEditDropDownControl.cs#L29

csharp
this.currentFilter = filter;
TreeList.FilterNodes();
if(TreeList.VisibleNodesCount == 0) OwnerEdit.ClosePopup(PopupCloseMode.Cancel);

winforms-tokenedit-dropdown-with-treelist/VB/TokenEditTest/CustomTokenEditDropDownControl.vb#L31

vb
Me.currentFilter = filter
TreeList.FilterNodes()
If TreeList.VisibleNodesCount = 0 Then

See Also

CustomRowFilter

Filtering

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace