Skip to main content

TcxCustomGridTableItem.OnCustomDrawCell Event

Occurs when a table cell or a card cell needs to be painted.

Declaration

property OnCustomDrawCell: TcxGridTableDataCellCustomDrawEvent read; write;

Remarks

This event occurs 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 (ACanvas parameter), ViewInfo to get the bounding rectangle of the painted element (AViewInfo parameter and its Bounds property). Sender is usually the element that caused the repaint. The ADone parameter is initially False you should set it to True to tell the grid that you have chosen to custom draw this item.

See Also