AutoColumnIndex

Class: TEgFireGrid

property AutoColumnIndex: Integer default 0;

The column that absorbs the width difference when AdjustColumnWidth runs with AutoColumnAll off: it grows when the grid gets wider than the columns and shrinks when it gets narrower. The value is an index into VisibleColumns (hidden columns are not counted), 0 being the leftmost.

When the user moves a column, AutoColumnIndex follows it, so it keeps naming the same column.

If shrinking this column alone would make it narrower than MinColumnWidth, every column shares the difference instead, for that adjustment only. A value outside the range of the visible columns is accepted but turns the adjustment off, even with AutoColumnAll, until it names a visible column again.

See Also

(C) 2026 Easygate, Lda