uViewGridBase: liberación correcta en método SaveGridStatus.
uEditorGridBase: Mejorado el método RefrescarInterno. git-svn-id: https://192.168.0.254/svn/Proyectos.Acana_FactuGES2/trunk@269 f4e31baf-9722-1c47-927c-6f952f962d4b
This commit is contained in:
parent
f067420216
commit
376332c3d4
@ -283,21 +283,17 @@ begin
|
||||
end;
|
||||
|
||||
procedure TfEditorGridBase.RefrescarInterno;
|
||||
var
|
||||
FocusedRow, TopRow : Integer;
|
||||
begin
|
||||
TopRow := ViewGrid._FocusedView.Controller.TopRowIndex;
|
||||
FocusedRow := ViewGrid._FocusedView.DataController.FocusedRowIndex;
|
||||
ViewGrid._FocusedView.BeginUpdate;
|
||||
ShowHourglassCursor;
|
||||
ViewGrid.SaveGridStatus;
|
||||
ViewGrid._FocusedView.BeginUpdate;
|
||||
|
||||
try
|
||||
// inherited; <- No hacemos lo que hay en el padre
|
||||
dsDataTable.DataTable.Refresh;
|
||||
finally
|
||||
ViewGrid._FocusedView.EndUpdate;
|
||||
ViewGrid._FocusedView.DataController.FocusedRowIndex := FocusedRow;
|
||||
ViewGrid._FocusedView.Controller.TopRowIndex := TopRow;
|
||||
ViewGrid.RestoreGridStatus;
|
||||
HideHourglassCursor;
|
||||
end;
|
||||
end;
|
||||
|
||||
@ -321,7 +321,9 @@ end;
|
||||
|
||||
procedure TfrViewGridBase.SaveGridStatus;
|
||||
begin
|
||||
FreeAndNil(FGridStatus);
|
||||
if Assigned(FGridStatus) then
|
||||
FreeAndNil(FGridStatus);
|
||||
|
||||
if not IsEmpty then
|
||||
FGridStatus := TcxGridStatus.Create(_FocusedView);
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user