LCL, fix picklist editor not saving data into dbgrid, regression introduced in r27317 #90bf8f4f5e, issue #17586

git-svn-id: trunk@27636 -
This commit is contained in:
jesus 2010-10-09 18:32:47 +00:00
parent d38da8c53c
commit f1a7c8604e

View File

@ -2294,7 +2294,8 @@ end;
procedure TCustomDBGrid.SetEditText(ACol, ARow: Longint; const Value: string);
begin
FTempText := Value;
if not EditorIsReadOnly then
FTempText := Value;
end;
procedure TCustomDBGrid.SetFixedCols(const AValue: Integer);
@ -2789,7 +2790,7 @@ begin
AField := GetFieldFromGridColumn(Col);
if assigned(AField) then
Result := not AField.CanModify;
if not result then begin
if not result and not FDatalink.Editing then begin
Include(FGridStatus, gsStartEditing);
Result := not FDataLink.Edit;
Exclude(FGridStatus, gsStartEditing);