I have a grid that allows column resizing. If at design time I resize a column all the other columns are not resized and are pushed out of the visible area and a horizontal scrollbar appears. This is exactly what I want. However, at run time if I resize a column the other columns are resized so that they remain in the visible area. I'm confused by this as I have no code that sets anything on the grid in runtime code, so why will does it behave differently ?
I've got AutoFitMode set to none, AllowColSizing set to Free on the layout and bands.
What else do I need to set?
Thanks
Are you certain that none of those properties are being set at run-time? I just tried this out in a new project and it worked correctly for me. Are you loading a layout at run-time that might be deserializing some settings? Could you provide a small sample project that I can take a look at?
-Matt
Hi Matt,
I've been playing around with this and found some very odd goings on.
On InitializeLayout AutoFitStyle was being changed to "ResizeAllColumns" ah! not good. We sub class the grid and it was in the base class, hence I didn't see it.
Whats odd is that when the grid is initially created (but before it is bound) its fine, but as soon as its bound it breaks. I cant explain that, but I have a route forwards now.
Thanks!