Click here to Skip to main content
15,889,883 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to filter a Treeview in Windows Application without deleting the nodes.
Posted

1 solution

You have several options, in my opinion:
  • Use an available component/library implementing such a functionality

or
    Keep the original TreeView hidden and generate each time a new (visible) TreeView with filtered data.

or
    Define your Tree data structure with filtering functionality and use the filtered data to populate a TreeView.
 
Share this answer
 
Comments
Madhukumar N 10-Sep-14 6:31am    
can you please give me the code i have around 5 levels of treenodes. and at the end i need to save the tree structure too if i delete the nodes to get filetered treeview i will be at problem while saving please help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900