Link to home
Start Free TrialLog in
Avatar of vicmart69
vicmart69

asked on

Move a nodewith its subnode up/down in a treeview

Hi,

For example a treeview:

A
B
C
..D
....E
F

I would like to move for example C and its subnode just after A with a click of a button.  I'm already configured for drag and drop so I can change parent, but I just can't figure out how to move higher or lower (personalised sorting)

Thanks,

Martin
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vicmart69
vicmart69

ASKER

Works perfectly.

I first tried arif eqbal solution on a blank project and it worked perfectly.  however I haven't been able to make it work in my program (??)  .. always had "argument is not valid value: index".  So I went for Idle Mind solution and it worked.

Your help is greatly appreciated.