Skip to main content

TdxGridReportLink.OnCustomDrawFilterBar Event

Occurs when the filter panel in the report is going to be drawn.

Declaration

property OnCustomDrawFilterBar: TdxGridReportLinkCustomDrawFilterBarEvent read; write;

Remarks

Handle the OnCustomDrawFilterBar event handler to perform custom drawing of the filter panel in a report.

Parameter Description
Sender Represents the report link that renders the report
ACanvas A TCanvas instance for drawing the Filter bar cell on the report
AView The view that contains the data being printed.
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.

Note

To implement custom drawing for the filter panel, make sure that the filter panel exists and isn’t empty; otherwise, custom drawing will not be performed.

See Also