Skip to main content

TcxTreeListCustomReportLink.OnCustomDrawBandCell Event

Enables custom painting of the TreeList control band header within the report.

Declaration

property OnCustomDrawBandCell: TcxTreeListReportLinkCustomDrawBandCellEvent read; write;

Remarks

To implement custom painting of the TreeList control band header within the report you should use the report link OnCustomDrawBandCell event and enable custom painting via the SupportedCustomDraw property. Set it to True to enable custom painting and to False to disable it.

To implement custom painting you will need a canvas to paint onto (provided by the ACanvas parameter) and painting information provided by the AnItem parameter. Optionally, you can access the owning report link properties and methods via the Sender parameter and the band, whose header is currently painted, via the ABand parameter.

To prevent default drawing of the band header set the ADone parameter to True. By default, this parameter is set to False to enable default drawing.

See Also