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
45
Grid bound to hierarchical collection, but header columns show on both bands.
posted

I have a WinGrid with its datasource bound to a collection of header line objects. Each of those objects has a detail line collection property, so the WinGrid displays a two band hierarchy of header and detail rows. That all works fine and when I expand a header line the correct data is returned and added to the grid.

My problem is that the columns displaying in the grid's detail band are those of the header object rather than the detail object. Looking at the list object for those detail rows shows it to be the correct detail object type, but the grid isn't using the detail properties for the columns in the detail band.

I'm sure it must be something relatively simple I've missed, but I can't see what it is right now. If someone has any idea then I'd appreciate it..