FMX.Grid.TCustomGrid.OnDrawColumnCell
Delphi
property OnDrawColumnCell: TDrawColumnCellEvent read GetOnDrawColumnCell write SetOnDrawColumnCell;
C++
__property TDrawColumnCellEvent OnDrawColumnCell = {read=GetOnDrawColumnCell, write=SetOnDrawColumnCell};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | public | FMX.Grid.pas FMX.Grid.hpp |
FMX.Grid | TCustomGrid |
Description
Occurs when the grid needs to paint a cell.
Write an OnDrawColumnCell event handler to provide customized drawing for the data in the cells of the grid.
If the DefaultDrawing property is set to True, the cell will be drawn before the OnDrawColumnCell event. If it is set to False, the grid doesn't draw anything.
Also, in this event handler it is possible to call the DefaultDrawColumnCell method to process default drawing. It can be useful if DefaultDrawing is set to False and you need to draw something before the default drawing.