Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a treeview that is bound to sql table.and in the right hand side of my treeview i have two buttons ,one for move the nodes upper,and the other is to move them down.and it works perfectly.but i want to save the position of the nodes . for example when i move the node up ,i want that to be saved in my table,so that the next time i open the webpage, the appearance of the nodes be the same as when i closed my page.i mean when users make changes,it should be saved .
Posted

1 solution

The best way to do that is to save EVERY node's position in the database, and when you retrieve the data, order by the nodeposition column. If the NodePosition column is null, order by another appropriate column.
 
Share this answer
 

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