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
Thanks Matt!... that did it. I set the key of the child band to the name of the parent-child relationship.
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