Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

refresh dbgrid beginupdate

618 views
Skip to first unread message

eric....@toto.com

unread,
Apr 25, 2008, 5:57:29 AM4/25/08
to
Hello,

i have the following question:

i have a dbgrid on a form. and if i update the dataset, changes are directly
reflected on the form.
i want to have a kind of "beginUpdate" "endUpdate".

thank you for your ideas and suggestions,

Ele.

Paul Hughes

unread,
Apr 25, 2008, 7:58:16 AM4/25/08
to
<eric....@toto.com> wrote in message
news:4811ab09$1...@newsgroups.borland.com...
> Hello,

>
> i have a dbgrid on a form. and if i update the dataset, changes are
> directly reflected on the form.
> i want to have a kind of "beginUpdate" "endUpdate".
>
You should try something like
...
DataSet.DisableControls;
try
//do your work on the dataset here
finally
DataSet.EnableControls;
end;
...

This prevents the grid updating (or any other controls) whilst you are
processing the dataset records in code.

Regards, Paul.


eric....@toto.com

unread,
Apr 30, 2008, 6:15:29 AM4/30/08
to
thank you for your answer.
it works great;

Ele.

"Paul Hughes" <hugh...@gmail.com> a écrit dans le message de groupe de
discussion : 4811...@newsgroups.borland.com...

0 new messages