Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have read several posts the last days regarding how to apply drag and drop features on a treeview when following the MVVM pattern.

All of those posts I have found have one thing in common, they do not work on nested hierarcial items in a threeview only on the root level..

I have tried to look at different code examples and try to figure out how this would be possible to acomplish but without any form of success so far :doh:

This is what I need to acomplish:

- We have a treeview control, we need to let the user drag and drop items within this threeview to make it possible to change the order of the items. It shall not be possible to move a child item out of it's current parent node..

Would this be possible at all or do I need to go for my second approach of using buttons so the user have to click "up" or "down" to move the selected item in the tree?
Posted
Comments
Frode Jensen 16-Sep-10 7:40am    
I found two posts here from GongSolutions that saved my day! So this issue is now solved using their DragDrop implementation

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900