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;