Connecting Tech Pros Worldwide Forums | Help | Site Map

Save treeView as XML ???

serge calderara
Guest
 
Posts: n/a
#1: Nov 14 '06
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

John Bailo
Guest
 
Posts: n/a
#2: Nov 14 '06

re: Save treeView as XML ???



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.


serge calderara wrote:
Quote:
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

--
The Texeme Construct
http://you-read-it-here-first.com


serge calderara
Guest
 
Posts: n/a
#3: Nov 15 '06

re: Save treeView as XML ???


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


"John Bailo" wrote:
Quote:
>
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.
>
>
serge calderara wrote:
Quote:
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
>
>
--
The Texeme Construct
http://you-read-it-here-first.com
>
>
>
John Bailo
Guest
 
Posts: n/a
#4: Nov 15 '06

re: Save treeView as XML ???


serge calderara wrote:
Quote:
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.
3rd party has it

http://www.obout.com/t2/propXML.aspx


For myself, I don't always think of it as a 1:1 mapping and need to
massage the data to and from the tree.



--
The Texeme Construct
http://you-read-it-here-first.com


Closed Thread


Similar .NET Framework bytes