AdjustColumnWidth

Class: TEgDBGridEx

procedure AdjustColumnWidth;

Redistributes column widths to fill the available client width. On an ordinary call, only the column at AutoColumnIndex absorbs the difference between the total column width and the client width - unless AutoColumnAll is True (every column shares the difference proportionally), or letting AutoColumnIndex alone absorb a shortfall would shrink it below MinColumnWidth (in which case every column shares the shortfall proportionally, for that call only). Called automatically on every resize and layout change when AutoColumnWidth is True; can also be called directly, and is called by SetColumnWidths after assigning explicit widths.

See Also

(C) 2026 Easygate, Lda