Re: fix for blinking data-aware controls?




"swansnow" <schultz@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1138286556.943719.88730@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I have a form with data-aware controls, connected to a datasource. If
> you click on a button, you can print a report. When the report is
> generated, it scrolls through the dataset, which is connected to the
> data-aware controls, so each record flickers on the screen as the
> dataset is scrolled. How do I disable this behavior (without using a
> separate query...)?

aDataSet.DisableControls;
try
// do the work
finally
aDataSet.EnableControls;
end;

You can use a bookmark, if necessary, to mark and return to the initial
record. One caution, make sure that you don't have code in the controls'
events that your reporting code (unknowingly) depends on.



.


Quantcast