FMX.Grid.TGridModel.OnDrawColumnBackground
Delphi
property OnDrawColumnBackground: TDrawColumnCellEvent read FOnDrawColumnBackground write FOnDrawColumnBackground;
C++
__property TDrawColumnCellEvent OnDrawColumnBackground = {read=FOnDrawColumnBackground, write=FOnDrawColumnBackground};
Properties
| Type | Visibility | Source | Unit | Parent | 
|---|---|---|---|---|
| event | public | FMX.Grid.pas FMX.Grid.hpp | FMX.Grid | TGridModel | 
Description
Occurs when the presentation needs to draw the background of a cell, and allows you to draw the cell background yourself to customize it.
The handler of OnDrawColumnBackground receives the following parameters:
- Senderis the presentation object that owns this model.
- Canvasis the canvas where you can draw the cell background.
- Columnis the column that contains the cell.
- Boundsindicates the cell boundaries.
- Rowis the row number of the cell.
- Valueis the cell value.
- Stateis the drawing state of the cell.
OnDrawColumnBackground occurs before OnDrawColumnCell.