Save treeView as XML ???

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear all,

I have a treeView control which is build with different parent and childs
node objects. I try to find out an easy and proper way to save that nodes
architecture in a XML file.

Then reading back that XML file will rebuild the same treenode structure.

Does anyone have any idea or done such thinkg ?

regards
serge
 
Hi serge,

I've built a complete Smart client c# application that loads a treeview
with XML data from a web service.

I started with this article here:

http://support.microsoft.com/kb/317597/en-us
How to populate a TreeView control with XML data in Visual C# 2005 or in
Visual C# .NET


Although I ended up doing a lot of custom work to design my XMLDocument
and how the tree is populated -- loading the nodes, setting colors,
enabling right click etc.
 
Thanks for the link I will give a try.

I still woderware why ther is no such direct thing in the framework for
treeView poupalted with XML in a similar way as datarid and dataset.
May be soon who knows
 
Back
Top