I m using a grid with a parent band and a child band. I am assigning a dataset, having two datatable to grid datasource. After assigned the datasource, if we check the grid, the child band rows are not displaying but the datasource contains the row. any one tell me whats the problem
Hi,
normally you have to add relations between the tables. Just take a look at DataSet.Relations.
ds.Relations.Add(ds.Tables["Orders"].Columns["OrderNo"], ds.Tables["OrderDetails"].Columns["OrderNo"]);
or
ds.Relations.Add(ds.Tables["Orders"].Columns["OrderNo"], ds.Tables["OrderDetails"].Columns["OrderNo"]).Nested = true;
Hope this will help you.
Kind regards
Ralf
Thanks for ur reply.
I created my grid dynamically on runtime. I have one relation for that bands (3 parent band columns linked with 3 child band columns). When i checked the grid's datasource, all datas are there. But in grid, the child rows are not displaying (Parent rows are there). If i click the empty child row, all the rows for that child band is coming. This problem coming at one form only.
Thanks and regards
Suresh Kumar