Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving treeview's nodes and its childs
Message
From
21/09/2004 15:44:24
 
 
To
21/09/2004 13:10:26
General information
Forum:
Visual Basic
Category:
ActiveX controls
Miscellaneous
Thread ID:
00944619
Message ID:
00944703
Views:
20
>Shouldn't the node be moved when you change its parent node?
>
>The children would move automatically since the are still its child.

That's what I thought but it does not work ... or I'm doing it wrong.

Let's say nodA (node being moved) and nodeB (node being drop on). When I drop nodA and replace nodA.parent.Key with nodB.key then I get a "key not unique" error message. I'm not sure why and figured the treeview tries to copy nodeA to its new position and finds that nodeA has a previous position and raises an error.

So I tried removing nodeA before re-adding it to the treeview with its new parent ... but I lose all the childs (remove method removes node and its child).

I'm sure this should work but I do not get it. Any advices?
Ben Rail
Business Solutions
LOGI.design
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform