Move nodes up down in a Tree view Contro

  • Re: Move nodes up down in a Tree view Contro


    suppose the only way is to sort the nodes on the Text index since the Index is read only

  • Re: Move nodes up down in a Tree view Contro


    If you wish to move a branch up or down the tree then just change the key of the nd.Parent property.


    Say you wanted to move a node with key "MoveMe" to be a child of a node with a key "MoveToHere" then the code would be something like:

    Code
    tv.nodes("MoveMe").Parent=tv.Nodes("MoveToHere")


    Hope that helps!


    A.

  • Re: Move nodes up down in a Tree view Contro


    sry but thats read only
    :


    made this code prob is when a node has childs they do not move up or down with the selected node. Any idea :

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!