Categories > Coding > C# >
(Help) Search Treeview
Posted
```var View = CollectionViewSource.GetDefaultView(treeview.Items);
if (View != null) View.Filter = (O) => { return O.ToString().ToLower().Contains(SearchBox.Text.ToLower()); };```
Im trying to get it to search the treeview but it wont work.
Replied
That code is yikes
Cancel
Post
Discord : Doctor Doom#0550
Replied
yeah ofc it wont work that code is for a listbox
Cancel
Post
Replied
ever heard of a recursive searching method lol
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post