Re: Refresh of a DBGrid
- From: "Guillem" <guillemvicens-nospam@xxxxxxxxxxxxxxxxxx>
- Date: 29 Sep 2005 01:00:13 -0700
Bill Todd wrote:
> Save the primary key value(s) for the current record. Close the query.
> Open the query. Call Locate to find the record that was current.
additionally you could use DisableControls before closing the query and
EnableControls after locating the record. This way, the user will not
notice the closing/opening/locating, unless he or she is working on the
grid at the same moment of closing the dataset. In this case, the user
will not be able to continue to work on it until the EnableControls is
executed.
--
Best regards :)
Guillem Vicens
Dep. Informática Green Service S.A.
www.clubgreenoasis.com
--
in order to contact me remove the -nospam
.
- References:
- Refresh of a DBGrid
- From: Mikael Lenfors
- Re: Refresh of a DBGrid
- From: Bill Todd
- Refresh of a DBGrid
- Prev by Date: Re: ADO failing on XP - untangling MDAC and Jet DLLs
- Next by Date: ADO - Retrieve and update values
- Previous by thread: Re: Refresh of a DBGrid
- Next by thread: TDataSetProvider: to use or not to use?
- Index(es):
Relevant Pages
|