views:

2391

answers:

2

Typically, when I use the standard TreeView control that comes with C#/VB I write my own methods to transfer data in and out of the Tree's internal hierarchy store.

There might be ways to "bind" the GUI to a data store that I can point to (such as XML files), and when the user edits the tree items, it should save it back into the store. Is there any way to do this?

+2  A: 

The following article should let you do what you want.
http://www.codeproject.com/KB/tree/bindablehierarchicaltree.aspx

edit If you don't need something quite as elaborate as the above, the following mught be easier/more appropriate
http://www.codeproject.com/KB/tree/dbTree.aspx

edit2 Seeing as you want this to respond to changes in the treeview, you'll probably want the first option.

Jonathan Fingland
A: 

I know ObjectListView (http://objectlistview.sourceforge.net/html/index.htm) has a TreeListView available.

Maybe that can also help you.

alex