Retreiving from a treeview

G

Guest

Does any one have a sample how to go to a parent node
and then retreive all the children nodes info for that particulir parent.

Example you have products as a parent tree
then you have sales for that particulair product in the child tree.
for each product I would like to retreive all the sales Info dates in
particulair.

The tree is loaded But I need a way to retreive.
 
L

Lloyd Sheen

It is really quite simple.

The treeview has a Nodes collection. Those are the children of the the
treeview.

Then each node (child) has a Nodes collection which is the children of the
child.


and so on and so on.

so kinda (unchecked , don't want to take away all the fun)

for each nod as node in treeview1.nodes
for each nd as node in nod.nodes
... do something
next
next
Lloyd Sheen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top