cjard
Well-known member
- Joined
- Apr 25, 2006
- Messages
- 7,081
- Programming Experience
- 10+
I have a datatable with some hierarchical data in it, and it is represented in a treeview in hierarchy form. Its a basic 1 level deep tree. In each leaf node's tag I store a reference to the row in the table, because when a leaf is selected, I use this row to set the .Filter of the bindingsource so that the main area of the screen shows details only for that line of data.
What I'd really like to do, is bind the tree up in some way so that navigating the tree alters the .Position of the bindingsource instead, like when you select Row X of a datagrid, it updates the position - how can I know the position?
Should I iterate the bindingSource List instead of the datatable when filling the tree?
What I'd really like to do, is bind the tree up in some way so that navigating the tree alters the .Position of the bindingsource instead, like when you select Row X of a datagrid, it updates the position - how can I know the position?
Should I iterate the bindingSource List instead of the datatable when filling the tree?