Class: TEgFireGridCellControl
Declared in: EgFireGrid
TEgFireGridCellControl = class(TTextControl)
A data cell of the grid, as the Cell parameter of OnBeforeDrawCell
receives it. The grid keeps one cell control per visible row and column
and reuses them as the rows scroll, so a cell control stands for a
position on screen, not for a record: keep no reference to one outside
the event.
In OnBeforeDrawCell
a handler reads where the cell is (Column,
RowIndex,
Selected,
…) and may change, for that cell only, BackColor,
CellFontColor,
CellFontStyle,
ImageIndex
and ImageAlignment.
They are all set again from the column before the next time the event
fires for the cell. The cell’s inherited Font,
FontColor and Text are set by the grid after
the event and must not be changed.
| Properties |
|---|
BackColor |
CellFontColor |
CellFontStyle |
Column |
Grid |
ImageAlignment |
ImageIndex |
OddRow |
RowIndex |
RowSelected |
Selected |