Skip to main content

TdxGridReportLink.OnCustomDrawBandCell Event

Occurs when the band headers in the report are going to be drawn.

Declaration

property OnCustomDrawBandCell: TdxGridReportLinkCustomDrawBandCellEvent read; write;

Remarks

Handle the OnCustomDrawBandCell event handler to perform custom drawing of the band headers in the report.

Parameter Description
Sender Represents the report link that renders the report
ACanvas A TCanvas instance for drawing the band on the report.
AView Refers to the grid view whose element is being rendered
ABand The band containing the header to be drawn.
AnItem Specifies the properties of the printed cell.
ADone Determines whether custom drawing has finished and that default painting is not required.

Custom drawing can be disabled by setting the SupportedCustomDraw property to False. This will improve application performance slightly as resources don’t have to be created to support custom draw handlers.

See Also