Records are not displayed in DBGrid

From: Jacob Havkrog (jacobh_at_skrolledata.dk)
Date: 02/25/05


Date: Fri, 25 Feb 2005 16:49:09 +0100

Hi

I have a TADOTable connected to an Access database, and a TDBGrid that
displays the rows.

When I delete a row using

  MyADOTable.Delete;

then all but one of the rows in the TDBGrid are not displayed anymore. I
have to restart my app to see all the rows.

Doing

  MyADOTable.Close;
  MyADOTable.Open;

does not help. Mysterious.

Before I used a TwwDBGrid to display the data, and then there were no
problems. But I have to use TDBGrid instead, so I replaced it, and after
this I get this error.

I have the problem in 5 different DBGrids of similar setup, so I think the
problem must be the combination of TADOTable and TDBGrid and probably some
wrong setting somewhere ???

Can anybody help me ?

I use Delphi 5 update pack 1, and ADO update 2. This is the latest update
right ?

Thanks
Jacob



Relevant Pages

  • Re: Records are not displayed in DBGrid
    ... >then all but one of the rows in the TDBGrid are not displayed anymore. ... Brian Bushay (TeamB) ...
    (borland.public.delphi.database.ado)
  • Re: Records are not displayed in DBGrid
    ... > then all but one of the rows in the TDBGrid are not displayed anymore. ... Delete method calls the BeforeDelete and AfterDelete event handlers. ... Guillem Vicens ...
    (borland.public.delphi.database.ado)