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
739
need example of binding to a DataSet
posted

I have a DataSet that already has a hierarchical relationship between the two DataTables it contains and I want to bind this to a two-level WebDataTree.  I can't find any examples of how to do this.  Just setting the DataSource to the DataSet doesn't seem to work.  Our architecture involves a DAL layer and a business layer that returns either custom object collections, or sometimes DataTables/DataSets.

Can someone help me with this?  I want to use this new control but this has me stumped.

Ideally for each of the two levels I can set the visible text of the node to a description field from the corresponding DataTable and the value to an id field so that I can refresh a WebDataGrid based on the clicked node.

Thanks.