Tree View

digitalkid

New member
Joined
Mar 10, 2010
Messages
2
Programming Experience
Beginner
Hi Guys,

I'm just starting out at vb.net but have done programming before. i am trying to use a treeview to display information in a seperate table on the same form dependant on which nod of the tree is clicked. Secondly is it possible to import the information from an excel spreadsheet or does the information have to come from an access table.

i.e. If I click the root node all information is displayed. If I click the child node only that information is displayed.

Regards,

Nick
 
If I give you $10, does where it came from make any difference to how you spend it? Of course not; money's money. It all spends the same. Same goes here: data is data. Where it comes from makes no difference to how you can, or do, use it.

As for the first question, I'm not quite sure what the question is. Best I can tell, what you need to do is handle the AfterSelect event of the TreeView and then get the node that was selected from the 'e' parameter. From that you can decide what information to display.
 
If for example i click node 2 the child of the root, i want it to populate a table with say 1 2 3 4, but then if i click node 3 say the child of the child, i would then only need it to populate with 2,3,4 and so on.

Hope this makes more sense.
 
Back
Top