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
4032
Setting column width of WinGrid confusing
posted

I'm working with UltraWinGrid 2009.1.

I have 2 bands, on each band some columns are hidden, others are not. Now, in the Designer, if I try to set the column width to a specific value the value is 'changed' automatic to a other value. Even the hidden columns are not 0 anymore.

What I'm trying to achieve is that I can set some columns on same values, others of the double with etc. so that it looks friendly and not every column has its own width. If the total width exceeds the grid width, scrollbars should appear.

The first column width should also be adjusted with the header even if row selectors are enabled (that seems to be working).

Can anybody give me some help which properties influence all this width setting.

Thanks. Markus

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    If you have two bands, then the column widths in the two bands are synchronized by default. So setting the width of the first visible column in band 0, will also set the width of the first visible column in band 1.

    To turn this off, using the AllowColSizing property and set it to one of the "Free" settings.

    Another possibility is that you have turned on the AutoFitStyle property.

Children
No Data