Re: fix for blinking data-aware controls?
- From: Bjorge Sæther <bjorge@xxxxxxxx>
- Date: Fri, 27 Jan 2006 10:58:36 +0100
swansnow wrote:
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...)?
The easy way is "DataSet.DisableControls" / "DataSet.EnableControls" to avoid all controls from showing the traversing.
If it's a Master/Detail relationship involved, you can't do this. The best then would possibly be to disconnect DataSource components from DB controls. Or disabling rendering of the form (which may lead to erased parts of it, I guess) while reporting.
The constraints are: 1) the report needs to loop through the current dataset (which may have filters, or ranges, or master-detail relations being applied)
I usually don't do this - I usually use a separate data instance.
2) the controls should (preferably) remain showing the record which was current when the button was clicked (if not possible, it's ok for them to become blank)
If you can use DisableControls, this will be the case. But then the cursor of the details dataset won't move either...
3) When the report is finished, the controls should show the record which was current before the button was clicked
Can easily be done through bookmarks / requerying, depending on the dataset component type. What DB are you using ?
Bjoerge .
- Follow-Ups:
- Re: fix for blinking data-aware controls?
- From: swansnow
- Re: fix for blinking data-aware controls?
- From: Bjorge Sæther
- Re: fix for blinking data-aware controls?
- References:
- fix for blinking data-aware controls?
- From: swansnow
- fix for blinking data-aware controls?
- Prev by Date: Re: Test if memory pointer is valid?
- Next by Date: Re: fix for blinking data-aware controls?
- Previous by thread: Re: fix for blinking data-aware controls?
- Next by thread: Re: fix for blinking data-aware controls?
- Index(es):