Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving treeview's nodes and its childs
Message
De
21/09/2004 15:44:24
 
 
À
21/09/2004 13:10:26
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Divers
Thread ID:
00944619
Message ID:
00944703
Vues:
19
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform