saving treeviews/treeview data RRS feed

  • Question

  • hi,
    what is the best way to save treeviews/treeview data?

    Tuesday, July 10, 2007 7:11 PM


All replies

  • It really depends on what you are doing with that data.


    If it is settings (like user preferences), then you can use the Settings class - which saves the values into a config file.


    If it is data that you plan to use for other purposes, you may want to write it to a database.


    Hope this helps.

    Tuesday, July 10, 2007 9:45 PM
  • so there is no other easier way?
    Wednesday, July 11, 2007 1:18 AM
  • If you want to store it to a database - you can use binding.
    Wednesday, July 11, 2007 2:29 PM
  • um, i am not familiar with databases.  is there a good resource for saving to databases?

    Wednesday, July 11, 2007 4:33 PM
  • does anyone have a good source for righting data to .xml files?

    Wednesday, July 11, 2007 9:40 PM
  • Hi, Cameron

    Use XmlDocument and XmlNode class or Using the XmlWriter

    Sample code follows: http://www.c-sharpcorner.com/UploadFile/mahesh/ReadWriteXMLTutMellli2111282005041517AM/ReadWriteXMLTutMellli21.aspx



    This response contains links reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.

    Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.

    There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Thursday, July 12, 2007 4:09 AM