AdjustColumnWidth

Class: TEgFireGrid

procedure AdjustColumnWidth;

Changes the widths of the visible columns so that together they fill the width of the grid, less the indicator gutter. The difference goes to the column at AutoColumnIndex or, with AutoColumnAll, is shared by every column in proportion to its width; it is also shared when the AutoColumnIndex column alone would end up narrower than MinColumnWidth.

With AutoColumnWidth on, the grid calls it by itself whenever the widths could stop fitting. It can be called at any time, whatever the value of AutoColumnWidth, for example once after loading saved column widths into a grid that should fill its width without keeping them adjusted afterwards. It does nothing when there is no visible column or AutoColumnIndex names none. The column widths it sets are not reported through OnColumnResize.

See Also

(C) 2026 Easygate, Lda