Cells font and back colors
Set fonts and coloring grid cells using events
To control the rendering content of cells in the grid data partition, there are two types of events.
Type 1 event to replace the rendering parameters. It's events like TDBVertGridEh.OnGetCellParams and TFieldRowEh.OnGetCellParams. In these events, it is necessary to replace the parameters such as font, font, text alignment, the number of pictures ImageList, etc., but drawing itself carries the internal code of the grid.
Type 2 events in which event handler executes rendering the cell contents.
Here is a list of events that you can use to customize the font attributes and color of the cell before the data is printed. At the time of calling all of the following events DataSet will already be on the record, the contents of which it is necessary to render, so you can access the field values using the methods like TDataSet.FieldByName(..).Value. Do not change the properties of the grid or columns inside those events. This may cause a program loops.
TDBVertGridEh.OnGetCellParams
TFieldRowEh.OnGetCellParams
TDBVertGridEh.OnAdvDrawDataCell and TFieldRowEh.OnAdvDrawDataCell
