On Wed, 2005-10-12 at 19:09 -0300, Felipe Monteiro de Carvalho wrote:
> Luiz Americo wrote:
> > This is the way TDataset works. If  a record is not posted then it can 
> > be cancelled (maybe DBGrid is calling cancel in this case).
> > A simple way to add a record is to do a procedure like:

> I'd like the new record to be posted by default when I change to another 
> record instead of being canceled. Is putting Post on the events the best 
> way to go? It seams a little ugly to add OnClick just for that. And then 
> I will also need OnKeyDown for the keyboard...

By default, the TDataset.next and TDataset.prior should call post before
executing. So maybe something strange with the grid?

Joost.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to