Board index » delphi » Posting changes in TDBGrid

Posting changes in TDBGrid

TDBGrid posts changes to a record when the user moves to another
record.  Is there a way to capture and post changes if the user changes
the record, but closes the form without moving to another record?
Thanks.
 

Re:Posting changes in TDBGrid


check the state of the assigned dataset (datasource.dataset) in a
OnCloseQuery-method !

mfg-cd

Paul T. Smith schrieb:

Quote
> TDBGrid posts changes to a record when the user moves to another
> record.  Is there a way to capture and post changes if the user changes
> the record, but closes the form without moving to another record?
> Thanks.

Re:Posting changes in TDBGrid


check the state of the assigned dataset (datasource.dataset) in a
OnCloseQuery-method !

mfg-cd

Paul T. Smith schrieb:

Quote
> TDBGrid posts changes to a record when the user moves to another
> record.  Is there a way to capture and post changes if the user changes
> the record, but closes the form without moving to another record?
> Thanks.

Re:Posting changes in TDBGrid


Call DataSet.CheckBrowseMode on the OnClose event of the form.
Quote
Paul T. Smith wrote in message <36F9EE42.B0FCA...@worldnet.att.net>...
>TDBGrid posts changes to a record when the user moves to another
>record.  Is there a way to capture and post changes if the user changes
>the record, but closes the form without moving to another record?
>Thanks.

Re:Posting changes in TDBGrid


In the OnCloseQuery of the form check in the Dataset state is in
[dsInsert,dsEdit] if so do a Post.

Now I feel good today

In article <36F9EE42.B0FCA...@worldnet.att.net>,

Quote
  jennasm...@worldnet.att.net wrote:
> TDBGrid posts changes to a record when the user moves to another
> record.  Is there a way to capture and post changes if the user changes
> the record, but closes the form without moving to another record?
> Thanks.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

Other Threads