Skip to main content
Table of Contents

TTMSFNCDataGridRenderer.OnBeforeDrawCell Event

Fired before a cell is drawn. Set ACanDraw to False to take full control of drawing.

API unit family: TMSFNCDataGridRenderer Declaring type: TTMSFNCDataGridRenderer

Syntax

FMX.TMSFNCDataGridRenderer.hppPascalC++
OnBeforeDrawCell: TTMSFNCDataGridBeforeDrawCellEvent;
__property TTMSFNCDataGridBeforeDrawCellEvent OnBeforeDrawCell = {read=FOnBeforeDrawCell, write=FOnBeforeDrawCell};

Remarks

Fires for every visible cell on each repaint; keep the handler fast. To change colours or fonts rather than paint yourself, prefer OnGetCellLayout. OnAfterDrawCell fires after the default drawing.

Parameters

Name Description
Sender Renderer that fired the event.
AGraphics Graphics context used for drawing.
ACell Cell object that will be drawn.
ACanDraw Set to False to skip default cell drawing.