This commit is contained in:
sgwp 2024-07-22 10:20:12 +08:00
parent 8ec54ccf7e
commit e8b4b8b8a5

View File

@ -2484,6 +2484,7 @@ begin
mGridName := cxGrid.GetParentComponent.Name + '.' + cxGrid.name; mGridName := cxGrid.GetParentComponent.Name + '.' + cxGrid.name;
try try
cxGrid.BeginUpdate();
mADOTmp := TADOQuery.Create(nil); mADOTmp := TADOQuery.Create(nil);
mADOTmp.ConnectionString := DConString; mADOTmp.ConnectionString := DConString;
with mADOTmp do with mADOTmp do
@ -2544,6 +2545,7 @@ begin
finally finally
mADOTmp.close; mADOTmp.close;
mADOTmp.Free; mADOTmp.Free;
cxGrid.EndUpdate();
end; end;
end; end;
@ -2569,6 +2571,7 @@ begin
mGridName := cxGrid.GetParentComponent.Name + '.' + cxGrid.name; mGridName := cxGrid.GetParentComponent.Name + '.' + cxGrid.name;
try try
cxGrid.BeginUpdate();
mADOTmp := TADOQuery.Create(nil); mADOTmp := TADOQuery.Create(nil);
mADOTmp.ConnectionString := DConString; mADOTmp.ConnectionString := DConString;
///////////////////////////////////////// /////////////////////////////////////////
@ -2651,6 +2654,7 @@ begin
finally finally
mADOTmp.close; mADOTmp.close;
mADOTmp.Free; mADOTmp.Free;
cxGrid.EndUpdate ;
end; end;
end; end;