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
55
Bind Ultragrid to a dataset with multiple datatables
posted

I am trying to bind a dataset with multiple datatables to an ultragrid. But i see that only the first datatable in the dataset is bound to the ultragrid. Please advise on what i am doing wrong here. Here is the code snippet.

DataSet ds = new DataSet(); 

DataTable dt1 = CreateDataTable("Table1"); 

ds.Tables.Add(dt1); 

DataTable dt2 = CreateDataTable("Table2"); 

ds.Tables.Add(dt2); 

grid.DataSource = ds;

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

    Just to clarify, the WinGrid will only show one root-level table. So you can show a single table which child relationships. The WinGrid does not support displaying multiple sibling tables at the root level. If that's what you want, you may want to try UltraWinTree instead. The tree support multiple root-level tables, but it lacks some of the features of the grid such as filtering, summaries, printing, and exporting.

Children