SetColumnFormats

Class: TEgDBGridEx

procedure SetColumnFormats(Formats: array of string);

Assigns each element of Formats, in order, to the DisplayFormat of the corresponding column’s field, for every numeric, date/time, and auto-inc field type that exposes a DisplayFormat property (TBCDField, TFloatField, TCurrencyField, TFmtBCDField, TDateField, TTimeField, TDateTimeField, TSQLTimeStampField, TIntegerField, TLargeIntField, TSmallIntField, TWordField, TAutoIncField). An empty string or an unbound column (no Field assigned yet) is skipped; a field type without a DisplayFormat property is left unchanged.

See Also

(C) 2026 Easygate, Lda