adding child to parent node in a treeview.
-
Hi all, i m using a treeview control. i m successful in adding nodes at run time, but my problem is tht i wanted to add nested treenodes. that means root node child one of root node child one of child one child two of child one ----- ------- child 'n' of child one child two of root node child one of child two child two of child two ----- ------- child 'n' of child two ----- ------- child 'n' of root node can anybody help me i 've added treenode as child one but now i want to add child of child one at run time.
-
Hi all, i m using a treeview control. i m successful in adding nodes at run time, but my problem is tht i wanted to add nested treenodes. that means root node child one of root node child one of child one child two of child one ----- ------- child 'n' of child one child two of root node child one of child two child two of child two ----- ------- child 'n' of child two ----- ------- child 'n' of root node can anybody help me i 've added treenode as child one but now i want to add child of child one at run time.
Select the node you want to add to, and add the new child to it's child collection, instead of at the root. Christian Graus - Microsoft MVP - C++