Jo Ju

Jo Ju

  • NA
  • 11
  • 0

Tree View Control

May 12 2006 8:05 PM
Hi

I want to bind a tree view to a collection object.

I bind the tree view's datasource in the code behind. how do i bind the data items.

I try doing it but i get this error :

 System.InvalidOperationException: HierarchicalDataBoundControl only accepts data sources that implement IHierarchicalDataSource or IHierarchicalEnumerable.

I dont have any problem when i bind the collection to a datagrid.

Any help appreciated.

thanks

Jo