Treeview: Move Node in Tree up or Down

Ask your 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.
This topic is 7 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
freeman
Posts: 8
Last visit: Wed Mar 20, 2024 4:09 am

Treeview: Move Node in Tree up or Down

Post by freeman »

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
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Treeview: Move Node in Tree up or Down

Post by jvierra »

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 231 times
User avatar
freeman
Posts: 8
Last visit: Wed Mar 20, 2024 4:09 am

Re: Treeview: Move Node in Tree up or Down

Post by freeman »

Thanks a lot for the example! :D
This topic is 7 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked