Binding to TreeView

  • Thread starter Thread starter Jonathan Wood
  • Start date Start date
J

Jonathan Wood

I want to develop a non-ASP C# application.

My program will include a TreeView control that the user can add and remove
items from, and I'm considering the possibility of using ADO to store my
tree data.

Can anyone tell me if it makes sense to use data binding between ADO and a
TreeView control? Can you point me to info on doing this? Or am I better off
writing the code to maintain the TreeView myself?

Thanks for any tips.
 
Can anyone tell me if it makes sense to use data binding between ADO and aTreeViewcontrol? Can you point me to info on doing this? Or am I better off
writing the code to maintain theTreeViewmyself?

The standard .NET Treeview control does not support databinding - so
if you choose to use it you will have to write the code to maintain
the link between the data and the visual representation. There are a
number of third party controls that support some form of
databinding. Most only support databinding to a single table (with
a recursive relation). Take a look at Infralution's Virtual Tree
control. This supports databinding to ADO datasets. IThe
databinding mechanism is very flexible and allows binding to multiple
tables with full programmatic control. You can get more information
and download an evaluation version from:

www.infralution.com/virtualtree.html

Regards
Grant Frisken
Infralution
 

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

Similar Threads

populating a TreeView control 0
Binding TreeViews 2
treeview control problems 1
TreeView and TreeNodes 2
Stop Treeview startlabeldit 1
Filling treeview 7
Bind a treeview control 1
Databinding XML to a TreeView 2

Back
Top