AutoColumnWidth

Class: TEgFireGrid

property AutoColumnWidth: Boolean default False;

When True, the columns keep filling the width of the grid (less the indicator gutter): whenever the grid is resized, the columns change, a column is resized by the user or MinColumnWidth changes, the grid calls AdjustColumnWidth, which gives the difference to the column at AutoColumnIndex, or to all of them with AutoColumnAll. There is then no horizontal scroll bar and no empty area to the right of the last column.

Turning it on when the columns are wider than the grid shrinks every column in proportion, once, rather than only AutoColumnIndex (as in TEgDBGridEx); from then on the ordinary rule applies. Turning it off leaves the widths as they are.

See Also

(C) 2026 Easygate, Lda