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
1995
Wingrid - Datasource Problem
posted

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

Parents
No Data
Reply
  • 375
    posted

    Hi,

    normally you have to add relations between the tables. Just take a look at DataSet.Relations.

    For example:

    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

Children