Moving a TreView node (resequencing)
Posted on 2004-08-09
I have a treeview with several items in it such as this...
Without using DRAG-DROP I want to resequence some items. I just want to take Item 3c and move it to be before item 3a.
I also want to be able to move items from one folder to another in the same way such as moving item 2c to be right after item 1c.
Now I can simply create a new node item in the new location and delete the old item. I am wondering if there is another way to resequence items in the tree without moving them. I can change the parent but that won't get the item in the right location (at least not from what I have read and tested).
So if you know the trick, let me know.
I need an answer really fast, otherwise I will get stuck doing the "Creat New then Delete" trick which I think is very ugly.