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
 
Back
Top