Click to See Complete Forum and Search --> : Search in TreeView


gajesh
December 26th, 2006, 03:37 AM
Hi,
I am using TreeView control in form application of VS2005.
I want that whenever i add node to a parent node, it should check that if the node is already existing in the parent then it will be replaced otherwise be added.

So how we do search for child nodes for a particular node(parent).

RootNode
Node1
Child1
Child2
If i am adding child2 to Node1 then it should replace the existing.

thanks

Gajesh
Pune(India)

HanneSThEGreaT
December 28th, 2006, 03:19 AM
I came accrosss this interesting article the other day. The whole purpose of this article is to be able to do a search in the TreeView, the display the returned results in the treeview again.

http://www.codeproject.com/cs/miscctrl/treeview_filter.asp

You may find some of the segments quite useful in your project.

I hope it helps a little :)