You've already forked lazarus-ccr
RxDBGrid: fix updown editor in grid cell with null values
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4080 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1237,12 +1237,14 @@ begin
|
||||
begin
|
||||
if not (F.DataSet.State in dsEditModes) then
|
||||
F.DataSet.Edit;
|
||||
|
||||
if F.IsNull then
|
||||
F.Value:=0;
|
||||
|
||||
F.Value:=F.Value - 1;
|
||||
|
||||
Msg.LclMsg.msg:=GM_SETVALUE;
|
||||
Msg.Grid:=Col.Grid;
|
||||
{ Msg.Col:=FCol;
|
||||
Msg.Row:=FRow;}
|
||||
Msg.Value:=F.DisplayText;
|
||||
TRxDBGrid(Col.Grid).Editor.Dispatch(Msg);
|
||||
|
||||
@ -1263,15 +1265,15 @@ begin
|
||||
begin
|
||||
if not (F.DataSet.State in dsEditModes) then
|
||||
F.DataSet.Edit;
|
||||
|
||||
if F.IsNull then
|
||||
F.Value:=0;
|
||||
F.Value:=F.Value + 1;
|
||||
|
||||
Msg.LclMsg.msg:=GM_SETVALUE;
|
||||
Msg.Grid:=Col.Grid;
|
||||
{ Msg.Col:=FCol;
|
||||
Msg.Row:=FRow;}
|
||||
Msg.Value:=F.DisplayText;
|
||||
TRxDBGrid(Col.Grid).Editor.Dispatch(Msg);
|
||||
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Reference in New Issue
Block a user