My guess is that ReportBuilder is navigating the dataset to create the report, but the cxGrid does not expect that.
Instead of decoupling the datasource, try using cxGrid.BeginUpdate
and cxGrid.EndUpdate
before and after pprReportBuilder.Print
like this:
Screen.Cursor := crHourGlass;
cxGridModeloDBTableView1.BeginUpdate;
try
pprReportBuilder.Print;
finally
cxGridModeloDBTableView1.EndUpdate;
Screen.Cursor := crDefault;
end;
HTH