1
Answer

Search in treeview - C#

Ask a question
Yossi Alaluf

Yossi Alaluf

15y
4.2k
1
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)