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;
Here I want To show only Delafield without IDs What Should I do?
Thanks for the feedback. If you need any additional assistance don’t hesitate to ask.
Thanks for the clarification Mike. That is exactly what i have been trying to do(Display multiple sibling tables at the root level).
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.
this is the sample