treeView and XmlDocument

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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.
 
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.
 
Back
Top