Skip to main content

TcxCustomGridTableView.OnCustomDrawCell Event

Occurs when a cell within a Table View needs to be painted.

Declaration

property OnCustomDrawCell: TcxGridTableDataCellCustomDrawEvent read; write;

Remarks

The OnCustomDrawCell event is raised every time a table cell or a card cell needs to be painted. As with other custom draw events it provides a canvas for the grid control (the ACanvas parameter), ViewInfo to get the bounding rectangle of the painted View element (the AViewInfo parameter and its Bounds property). Sender is usually the View element that caused the repaint. When performing custom drawing of the element you should set the ADone parameter (which is initially False) to True to prevent the grid from drawing this element.

See Also