Hi.
I built a helper class that will convert tabular data to hierarchical data, much like the helper method that you have defined. The class that I built extends HierarchicalDataSourceControl (which in turn implements IHierarchcialDataSource).
Let's say I define a DataTable with 3 columns, (ID, ParentID and Text)
Now, when I run the code:
HDTDataSourceControl dsc = new HDTDataSourceControl(table, "ParentID", "ID");
FlyTreeView1.DataSource = dsc;
FlyTreeView1.DataBind();
where HDTDataSourceControl is my class (and I have added a data binding for the text column), the tree view does not render the Text column properly.
Instead of rendering the Text column from the DataTable the TreeView renders (at least it appears to render) the type returned by a call to IHierarchyData.
I know this is hard to explain. I can send you the code if you like.
Thoughts?
Dave