procedure tBtnApplyUpdateClick(Sender: TObject);
var I: Integer;
begin
with ClientDataSetNamedo
begin
if State in [dsinsert,dsedit] then
Post;
if ChangeCount>0 then
begin
Try
I := ApplyUpdates(0);
if int = 0 then
begin
ShowMessage('数据提交成功.');
Refresh;
end;
Except
ShowMessage('Apply Update Fail!');
end;
end;
end;
end;