Click here to Skip to main content
15,883,531 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi I have a organisation chart that link to a treeview. when I change node of my chart(whit drag and drop), treeview node also chenged.
now I want save this changes of treeview to my table in database(sql server).The fields of my table is (id, parentid,text,value )how to save treeview node in mytable?
Updated 24-Aug-14 7:44am
pandu web dev 10-Aug-14 4:52am    
hi, check spelling mistakes in your question.

1 solution

Try serializing to XML and saving the whole structure instead of breaking it up : Loading and Saving a TreeView control to an XML file using XmlTextWriter and XmlTextReader[^]
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