TEgFireGridColumn

Class: TEgFireGridColumn

Declared in: EgFireGrid

TEgFireGridColumn = class(TCollectionItem)

One column of a grid: the field it shows, its title, width and visibility, and the settings that change how its cells look and behave. The columns are the items of the grid’s Columns collection (TEgFireGridColumns); while that collection is empty, the grid builds default columns of this same class.

Member Overview

Properties Methods Events
Alignment Assign OnBeforeDrawCell
AssignedValues Create OnBeforeDrawTitle
CellVAlign DisplayCaption OnCellClick
ClickableCursor EffectiveFont OnCellDblClick
Color EffectiveFontColor OnCellImageClick
DataKind EffectiveTitleFont OnCellRightClick
DateEditor EffectiveTitleFontColor OnCheckChange
DetectBlobImages NotifyChanged OnColumnMoved
DisplayFormat RestoreDefaults OnColumnResize
FieldName OnGraphicError
Font OnSortChange
FontColor OnTitleClick
Grid OnTitleImageClick
ImageAlignment OnTitleRightClick
ImageIndex
ImageOnSelectedOnly
IsDefault
MaxSize
MemoMaxChars
MinFontSize
PickList
PickListOnly
ReadOnly
Required
ShowImageOnEmpty
ShrinkToFit
Sortable
SortDirection
SubTitle
SubTitleFont
SubTitleFontColor
Title
TitleColor
TitleFont
TitleFontColor
TitleImageAlignment
TitleImageIndex
TitleShrinkToFit
TitleWordWrap
Visible
Width
WordWrap

Usage

Values from the field, values from the grid, values of the column

Several properties have no value of their own until one is assigned, and meanwhile show a value that comes from elsewhere:

From the field (read from the dataset) From the grid (same name on the grid)
DataKind, ReadOnly, Required, MaxSize, DisplayFormat, Alignment (from the data kind) Color, TitleColor, CellVAlign, DateEditor, Font, FontColor, TitleFont, TitleFontColor, MemoMaxChars, MinFontSize, DetectBlobImages, ShowImageOnEmpty, ImageOnSelectedOnly, ClickableCursor; WordWrap, ShrinkToFit, TitleWordWrap, TitleShrinkToFit from the grid’s options

Assigning one of them, in the Object Inspector or in code, even to the value it already shows, makes it the column’s own: it is added to AssignedValues, stored in the form (the others are not), and no longer follows the field or the grid. RestoreDefaults forgets every assigned value at once.

Events

The column has the same events as the grid for everything that concerns one column, with the same names and parameters. For a given occurrence the grid’s handler runs first, then the column’s; neither replaces the other, and Sender is the grid in both. A handler shared by several columns tells them apart by its Column parameter.

See Also

(C) 2026 Easygate, Lda