Re: Either BOF or EOF is True, or the...



> 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.


.