LCL, hide editor on dataset change, issue #11925

git-svn-id: trunk@16175 -
This commit is contained in:
jesus 2008-08-21 13:05:43 +00:00
parent c4633603ff
commit c1a8c3d29c

View File

@ -743,8 +743,12 @@ begin
if aDataSet=nil then DebugLn('nil)')
else DebugLn(aDataSet.Name,')');
{$endif}
if EditorMode then
EditorMode := False;
LayoutChanged;
UpdateActive;
if (dgAlwaysShowEditor in Options) then
EditorMode := true;
end;
procedure TCustomDBGrid.OnDataSetOpen(aDataSet: TDataSet);