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
785
How to prevent a horizontal scroll bar?
posted

I'm having a bear of a time finding the right properties to prevent a horizontal scroll bar from appearing in the grid.  I would like to allow:

- column resizing,

- the column chooser,

- column movement,

- extending the last column to fill the given area

but prevent any columns from ever getting so wide that they cause a horizontal scroll bar from appearing.  Any idea of that 1 in a million properties I must set?

Thus far I can use the default grid plus:

gridControl.DisplayLayout.Bands.Layout.AutoFitStyle = AutoFitStyle.ExtendLastColumn;

 

  • 469350
    Offline posted

    Hm, I don't think there is any way to prevent it entirely. If the user makes a column too big and there's not enough room, the grid has to show a scrollbar.