Link to home
Start Free TrialLog in
Avatar of visualbasic
visualbasicFlag for Ireland

asked on

Moving a node up one place on a treeview

How do you move a node up or down one place on a treeview in vb.net
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

You need to define the behaviour of your nodes a little clearer.

Do you want the node to stay on the same level or can it change depth?  Should it only move up/down swapping with the next node at the same depth?

A
+-B
|  +-C
|  +-D
+-E
| +-F
| +-G
+-H
  +-I
  +-J

In the tree above, if you move B down, should it swap with C or should it swap with E?
Should D be able to move down?  or should it swap with E or F?

~IM
Avatar of visualbasic

ASKER

Hi
if you move B down then It should swap with E and if you move G up it should swap with F only.

Cheers
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