Home > Back-end >  How to set up CXGrid don't automatically update data? And don't want to post data newlines
How to set up CXGrid don't automatically update data? And don't want to post data newlines

Time:11-02

How to set up CXGrid don't automatically update data? And don't want to post data newlines

CodePudding user response:

Are studying, there is a batch mode, but don't use on DEV,
 
Procedure Tincoming_edit. BitBtn1Click (Sender: TObject);//determine 1
The begin
Dm1. ADO_incoming. UpdateBatch;
Dm1. ADO_incoming_item. UpdateBatch;
Incoming_edit. Incoming_report. Enabled:=true;
Application. MessageBox (' successfully saved ', 'golden era prompt you! ', MB_OK + MB_ICONINFORMATION +
MB_TOPMOST);
BitBtn1. Enabled:=False;
end;

CodePudding user response:

Data set LockType set as ltBatchOptimistic, post is stored in the cache, only UpdateBatch () is committed to the database
Don't know if you want
  • Related