| OnGetCellColor Event |
Applies to
TIB_CustomGrid
Declaration
TIB_GetCellColorEvent = Procedure(Sender: TObject; ACol, ARow: longint; AState: TGridDrawState; var AColor: TColor ) of object;
Description
This method allows you to override the color of a cell.
It will also be applied to the inplace editor.
Please be sure to check if the associated dataset is prepared or not before
trying to access fields information. I purposely do not prevent the generation
of this event even if the dataset is unprepared because I want the developer
to have full control over the color of the grid.