Create

Class: TEgColumn

constructor Create(Collection: TCollection); override;

Standard column constructor, called whenever a TEgDBGridEx adds a new column (design time or at runtime). Seeds ImageIndex and TitleImageIndex to -1 (“no image” - a plain Integer field’s ordinary zero-init would otherwise be mistaken for the first image in Images), and sets ImageAlignment/ TitleImageAlignment to taRightJustify and the inherited Title.Alignment to taCenter - matching the same defaults RestoreDefaults resets a column to. The nineteen overridable properties themselves start with no override (AssignedValues empty), so a freshly created column follows the grid live until one of them is set explicitly.

Also creates this column’s own SubTitleFont - a genuinely owned TFont, unlike Title.Font which belongs to the native TColumnTitle - freed by a matching Destroy override when the column itself is destroyed.

See Also

(C) 2026 Easygate, Lda