Board index » delphi » Don't post a record after moving in a DBGrid

Don't post a record after moving in a DBGrid

Hello,
  When using the database grid, if I insert a record, the record will
be posted after the focus moves to a different record by mouse. So,
how can I do nothing in the situation, while I can post the record by
using a data navigator component?

 

Re:Don't post a record after moving in a DBGrid


Quote
>>  When using the database grid, if I insert a record, the record will
>>be posted after the focus moves to a different record by mouse. So,
>>how can I do nothing in the situation, while I can post the record by
>>using a data navigator component?

There's no way that I know of to keep a record from being posted
when you move off it's row in a grid.

You can, however, use CachedUpdates to undo unwanted changes....

See TDataset.CachedUpdates

===
Bill

Other Threads