Re: dxDBGrid no reaction immediately



keith wrote:

Hi, I use the following code to delete all records from table salary:

with dm.ADOCommand1 do
begin
CommandText :='delete from salary';
Execute;
end;
dm.qry_fromhis.Active :=false;
dm.qry_fromhis.Active :=true;

however, I have a very strange problem, the data in dxDBGrid not
deleted at once, I click twice, then all gone.

what's wrong? and how to fix?

Thanks a lot.

are you using CachedUpdates?

--
Best regards :)

Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam

.



Relevant Pages

  • Re: dxDBGrid no reaction immediately
    ... CommandText:='delete from salary'; ... however, I have a very strange problem, the data in dxDBGrid not deleted at ... once, I click twice, then all gone. ...
    (borland.public.delphi.database.ado)
  • I solved myself
    ... CommandText:='delete from salary'; ... however, I have a very strange problem, the data in dxDBGrid not deleted ... at once, I click twice, then all gone. ...
    (borland.public.delphi.database.ado)
  • dxDBGrid no reaction immediately
    ... CommandText:='delete from salary'; ... however, I have a very strange problem, the data in dxDBGrid not deleted at ... once, I click twice, then all gone. ... and how to fix? ...
    (borland.public.delphi.database.ado)