Re: Either BOF or EOF is True, or the...
- From: "Vitali Kalinin" <vitkalinin@xxxxxxxxx>
- Date: Thu, 28 Jul 2005 14:13:32 +0300
> MyLocalRecNoField := dataset.recno
>
> but First Record and Last Record in DBGRID show -1
>
> please help to correct this
>
> thank you
This is correct behavior for certain situations:
1. DataSet is at Eof or Bof
2. DataSet is in Insert mode
So you should ammend yours OnCalcField event to honor this situations
properly. As for (1) under assumption that you are using ClientSide Static
cursor it is easy enough as for (2) state it not so simple and depends on
what do you need.
.
- References:
- Either BOF or EOF is True, or the...
- From: forums.borland.com
- Either BOF or EOF is True, or the...
- Prev by Date: Re: MDAC 2.8 Sp1 problem, Delphi 7, Windowns XP SP2 problem
- Next by Date: Deleting an MS Access table
- Previous by thread: Either BOF or EOF is True, or the...
- Next by thread: Parameterized Query No rows effected
- Index(es):