LCL, fix moving dbgrid selected field to the last one while using 'END' key and there are invisible columns, Problem 3) issue #19993

git-svn-id: trunk@39317 -
This commit is contained in:
jesus 2012-11-20 08:55:31 +00:00
parent 0d8b603ec0
commit c02a423ee9

View File

@ -2229,8 +2229,11 @@ begin
GridFlags := GridFlags + [gfEditingDone];
if ssCTRL in shift then
FDatalink.DataSet.Last
else
MoveNextSelectable(False, ColCount-1, Row);
else begin
DeltaCol := GetLastVisibleColumn;
if DeltaCol>=0 then
MoveNextSelectable(False, DeltaCol, Row);
end;
GridFlags := GridFlags - [gfEditingDone];
ClearSelection(true);
Key:=0;