mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-27 20:13:50 +02:00
LCL: fix dbgrid that corrupts an editing field which does't allow more changes, issue #33734
git-svn-id: trunk@58010 -
This commit is contained in:
parent
3d7b93845d
commit
de467a095c
@ -3512,15 +3512,18 @@ begin
|
|||||||
else
|
else
|
||||||
result := true; // field is nil so it's readonly
|
result := true; // field is nil so it's readonly
|
||||||
|
|
||||||
EditingColumn(Col, not Result);
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCustomDBGrid.EditorTextChanged(const aCol, aRow: Integer;
|
procedure TCustomDBGrid.EditorTextChanged(const aCol, aRow: Integer;
|
||||||
const aText: string);
|
const aText: string);
|
||||||
|
var
|
||||||
|
isReadOnly: Boolean;
|
||||||
begin
|
begin
|
||||||
if not EditorIsReadonly then
|
isReadOnly := EditorIsReadonly;
|
||||||
|
if not isReadOnly then
|
||||||
SetEditText(aCol, aRow, aText);
|
SetEditText(aCol, aRow, aText);
|
||||||
|
EditingColumn(Col, not isReadOnly);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCustomDBGrid.HeaderSized(IsColumn: Boolean; Index: Integer);
|
procedure TCustomDBGrid.HeaderSized(IsColumn: Boolean; Index: Integer);
|
||||||
|
Loading…
Reference in New Issue
Block a user