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.
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.
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.