treeView and XmlDocument

G

Guest

Is there a way to "tie" or "bind" an XmlDocument to a treeView, so the
changes in the treeView can automatically be reflected in the XmlDocument
object? (Like DataSource for a ListBox)

If not, what's the best way to reflect the changes from the treeView back to
the XmlDocument?

Background:
I'm trying to read in an xml file and display some of the elements in a
treeview and have the XmlDocument be the datasource and the treeview just be
the view.
 
C

Champika Nirosh

Hi Craig,

No direct way taht you can do this with .Net. Only way is to write one of
your own class to handle the thing.. there are enough resource on the net
for you to do this.. such as recursively/ nonerecursively reading XML file
and map it to a tree view etc.. I can help you if you explain your
requirement in detail..

Thanks,
Nirosh.
 
G

Guest

Thanks alot for the reply, that helps.

Champika Nirosh said:
Hi Craig,

No direct way taht you can do this with .Net. Only way is to write one of
your own class to handle the thing.. there are enough resource on the net
for you to do this.. such as recursively/ nonerecursively reading XML file
and map it to a tree view etc.. I can help you if you explain your
requirement in detail..

Thanks,
Nirosh.
 

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