Hi maxl,
One very quick idea...
Both those controls allow you to add "keys" to each individual item /node within the control. So for example:
lstView.Items.Add(mykey, mydisplayvalue, 0)
and then for the treeview:
tvwTree.Nodes.Add(mykey, mydisplayvalue)
Upon the listview item click if there is one?? I can't remember.. you could just then say :
tvwTree.Nodes(mykey).Expand()
Only problem is that you (obviously) need something that's unique... like an ID number to go into these "keys".
Hope this helps!
Cheers,
Craig
|