[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'DBGrids' (#lcl)

TCustomDBGrid.OnDrawColumnCell

Event handler signalled when a cell needs to be drawn.

Declaration

Source position: dbgrids.pas line 529

protected property TCustomDBGrid.OnDrawColumnCell : TDrawColumnCellEvent
  read FOnDrawColumnCell
  write FOnDrawColumnCell;

Description

OnDrawColumnCell is a TDrawColumnCellEvent property that implements the event handler signalled when a cell in the control needs to be drawn. Assign a procedure to the event handler to perform drawing needed for the cell using the arguments to the routine.

OnDrawColumnCell is triggered from the DrawCell method after the Canvas is prepared and any fixed cell or DefaultDrawing is performed. Please note that OnDrawColumnCell is not performed at design-time, or for fixed rows in the grid control.

See also

TDrawColumnCellEvent

  

Specifies an event handler for drawing a cell in a grid control.


Version 4.0 Generated 2025-05-03 Home