HI,
I have a grid I'm using to display a collection. Each row in the collection is of type Product. There's a property call RelatedProducts which which is a collection of Products. This seems to cause the WinUltraGrid problems.. it tries to discover band information,stops at 100,and no longer generates the grid I want. It reverted back to the non-preset look and won't accept my changes. How can I get the grid to NOT try to look at child collections at all... just bind to the collection and ignore the child collections completely.
Thanks
Andy
Hi Andy,
You can set grid.DisplayLayout.ViewStyle to SingleBand or set MaxBandDepth to 1. Or both. :)
Seems to work. The Designer though still shows all the bands... but it seems to at least generate the code properly now, keeping both visual affects and column ordering. I can live with the designer taking a while to load.
Hm, that's odd. If you set the grid's ViewStyle to SingleBand and it's still showing child bands at design-time, then something is wrong there. That should not be happening.
ViewStyle has always worked as far as I know. I don't remember it ever being broken. I think there might have been an issue with MaxBandDepth not working at Design-time at some point. I'm not sure if that was ever corrected, but I think it was fixed in a hot fix.
I'm using 20072 I think.. maybe it was fixed in a newer version?