0
Answer

Tree View Control

Ask a question
Jo Ju

Jo Ju

18y
3k
1
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