DZap, I think there isn't a way to move treeview items around with code. So, I suggest a 'move' command, that would let you change the position of items, without destroying its branches. It could be like 'move <item> > <position>', where <item> is the item you want to move and <position> is its target.
Scoring disabled. You must be logged in to score posts.