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
930
Binding a manually defined Schema for Child bands
posted

Hi,

I've created a parent-child grid with a manually defined schema, so that I can control which fields are displayed for each band. My datasource is a Dataset with two tables that contain a parent-child relationship. When I bind the grid using the following:

ultragrid.SetDataBinding(ds, null, true);

...the manually defined schema only works for the parent band. The child band will continue to display all the fields in the child table. How do I get the grid to recognise the schema for the child band?

Thanks

Ryan

 

 

 

 

Parents
  • 37774
    Verified Answer
    posted

    You need to make sure that the child band's key is the same at design-time as the band that is being created at run-time.  Generally, I believe that this is the key of the relationship, using a DataSet, but it may have the key of the parent band preceeding it, separated by a period.  The easiest way to test this is to simply check the key of the child band at run-time, then open the designer to update the child band's key to this new key.

    -Matt

Reply Children
No Data