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
595
Binding specific DataTables with SetDataBinding()
posted

I have the following DataSet structure (constructed as number of DataTables and corresponding DataRelations)

+ Table 1

     + 1 Child of Table 1

     + 2 Child of Table 1

 

+ Table 2

     + 1 Child of Table 2

     + 2 Child of Table 2

 

SetDataBinding() allows you to specify a name of a specific DataTable within the DataSet that you're binding, so binding either Table1 or Table2 works fine. However, what if I want to bind both Table1 and Table 2 at the same time? Do I have to create additional nodes and bind each to a specific DataTable out of the dataset? SetDataBinding() does not seem to take an array of top level tables to bind to.

I expect the resulting root level structure to look like this:

+ Table 1

+ Table 2

 

Thanks!