mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-26 20:43:46 +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
|
||||
result := true; // field is nil so it's readonly
|
||||
|
||||
EditingColumn(Col, not Result);
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TCustomDBGrid.EditorTextChanged(const aCol, aRow: Integer;
|
||||
const aText: string);
|
||||
var
|
||||
isReadOnly: Boolean;
|
||||
begin
|
||||
if not EditorIsReadonly then
|
||||
isReadOnly := EditorIsReadonly;
|
||||
if not isReadOnly then
|
||||
SetEditText(aCol, aRow, aText);
|
||||
EditingColumn(Col, not isReadOnly);
|
||||
end;
|
||||
|
||||
procedure TCustomDBGrid.HeaderSized(IsColumn: Boolean; Index: Integer);
|
||||
|
Loading…
Reference in New Issue
Block a user