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
545
Strange behavior AutoFitStyle
posted

I created a menu option to set the AutoFitStyle on my grid.

From default (AutoFitStyle.None) to AutoFitStyle.ResizeAllColumns and to AutoFitStyle.ExtendLastColumn works fine.

From AutoFitStyle.ExtendLastColumn back to AutoFitStyle.None works fine also.

But AutoFitStyle.ResizeAllColumns back to AutoFitStyle.None or AutoFitStyle.ExtendLastColumn doesn't work. It remains on AutoFitStyle.ResizeAllColumns.

I tried:
     this.ultraGrid.Selected.Rows.Clear();
and
     this.ultraGrid.Refresh();
b
efore changing the AutoFitStyle but nothing seems to work.

What am I doing wrong ?

Parents Reply Children