Save treeView as XML ???

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
 
J

John Bailo

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.
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top