Search in treeview - C#

Feb 18 2009 2:26 AM
Hi,

I tryied to implement a recursive search in a tree without success.

For example my tree display 3 levels: root, parents and children. I need to return as result a new tree with only the children (and parets of course) that have  specific string in their names.

for example:

Company

                DEV

                                Yoni

                                Cris

                                Mark

                QA

                                Yossi

                                Alex

                                Serah

                                Danna

                QM

                                Josef

 

If I search for "yo"

The new tree should return:

 

Company

                DEV

                                Yoni

                QA

                                Yossi

Can anyone help me with this problem?

 

 


Answers (1)