Resize, StretchToFit and Scrollbars

May 6, 2009 at 10:55 AM

I've some problems with resizing my grid. The grid has 12 columns, one is marked as SourceGrid.AutoSizeMode.EnableStretch.
Now, if I resize the window and the grid will be greater, it works fine with the StretchToFit() method. But if I then will resize
the grid to a smaller one, the StretchToFit() doesn't take effect.

Further I've some problems with the scrollbar. Is there a way, to set the vertical scrollbar always visible. Because when there's no
scrollbar, I resize the grid, the columns take the hole area, but I want just to resize/stretch the columns to the left side of the scrollbar.

thanks for help


Jun 9, 2009 at 7:02 PM

Hi Roger,

Most of the time, it is the control that needs to be changed when you plunk it on the form, make sure you have the anchors set, or you are docking it correctly.

You can also access both scroll bars (vscroll and hscroll) and set them to visible.

Hope that helps a bit.