Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
710
Databinding Self-Referencing Data to a WinTree
posted

I have a table which defines a  hierarchy which is self-referencing.

I retrieve the data into a DataSet DataTable, and create a DataRelation for the self-referencing column (i.e. MyID and MyParentID). When I data bind the table to the tree, I see every node in the tree at the first level.  Only the TOP node should be at the first level, followed recursively by the children at each level.

What am I missing?

The TOP node in my hierarchy is indicated by a NULL parent ID.