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,
ok, I have not worked in this way ever. I allways have created relations in the related dataset. So I can't give you a solution, but maybe some suggestions. If the problem occurs only in one form, maybe some settings of the grid are different to the settings of grids in working forms. Maybe you have to expand the parent row programmatically or there is a setting for this.
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
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