Object Reference > True DBGrid Events > FetchCellStyle Event |
FetchCellStyle Event
The FetchCellStyle event occurs when the grid is about to display cell data in a column whose FetchStyle property is set to dbgFetchCellStyleColumn or dbgFetchCellStyleAddNewColumn.
TDBGrid_FetchCellStyle (ByVal Condition As Integer, ByVal Split As Integer, Bookmark As Variant, ByVal Col As Integer, ByVal CellStyle As TrueDBGrid80.StyleDisp)
TDBDropDown_FetchCellStyle (ByVal Condition As Integer, Bookmark As Variant, ByVal Col As Integer, ByVal CellStyle As TrueDBGrid80.StyleDisp)
Arguments
Condition is the sum of one or more CellStyleConstants describing the disposition of the cell being displayed.
Split is an integer that identifies the split containing the cell being displayed. This argument is omitted for TDBDropDown controls.
Bookmark is a variant that identifies the row containing the cell being displayed.
Col is an integer that identifies the column containing the cell being displayed.
CellStyle is a Style object used to override the font and color characteristics of the cell being displayed.
By setting one or more properties of the Style object passed in the CellStyle parameter, your application can change the appearance of individual cells.
You can also set the ForegroundPicture property of the CellStyle parameter to display distinct bitmaps on a per-cell basis.