Treeview: Move Node in Tree up or Down

Ask your Windows PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
freeman
Posts: 7
Joined: Fri Jan 09, 2015 2:22 am

Treeview: Move Node in Tree up or Down

Post by freeman » Thu Sep 08, 2016 12:51 am

Hello,

What is the most accurate way to move a node up and down with all its subnode in a treeview?
I've one treeview and two buttons "move up" and "move down"

Thanks for help

User avatar
jvierra
Posts: 13792
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Treeview: Move Node in Tree up or Down

Post by jvierra » Thu Sep 08, 2016 4:40 am

Here is a quick demo of how to move nodes in a treeview. Select an node and use buttons to move up or down.
Attachments
Demo-TreeviewXML_R3.psf
(28.38 KiB) Downloaded 97 times

User avatar
freeman
Posts: 7
Joined: Fri Jan 09, 2015 2:22 am

Re: Treeview: Move Node in Tree up or Down

Post by freeman » Thu Sep 08, 2016 6:32 am

Thanks a lot for the example! :D

Locked