SetColumnWidths

Class: TEgDBGridEx

procedure SetColumnWidths(Widths: array of Integer);

Assigns each element of Widths, in order, to the corresponding column’s Width. A negative value is skipped (that column keeps its current width). Calls AdjustColumnWidth afterwards, so the usual AutoColumnWidth / AutoColumnAll rules still apply to reconcile the total width with the client area.

See Also

(C) 2026 Easygate, Lda