158 |
|
function GridCanModify: boolean; |
159 |
|
procedure DoDrawRow(aRow: integer; aRect: TRect; aState: TGridDrawState); |
160 |
|
procedure DoMoveRecord(Data: PtrInt); |
161 |
+ |
procedure DoSelectNext(Data: PtrInt); |
162 |
|
procedure DoScrollDataSet(Data: PtrInt); |
163 |
|
procedure DoSetupDrawPanel(Data: PtrInt); |
164 |
|
procedure DoSendMouseClicks(Data: PtrInt); |
673 |
|
end; |
674 |
|
FLastRecordCount := GetRecordCount; |
675 |
|
if aDataSet.State = dsInsert then |
676 |
+ |
begin |
677 |
|
FRequiredRecNo := aDataSet.RecNo + 1; |
678 |
+ |
Application.QueueAsyncCall(@DoSelectNext,0); |
679 |
+ |
end; |
680 |
|
UpdateActive |
681 |
|
end; |
682 |
|
|
1070 |
|
FDataLink.DataSet.MoveBy(integer(Data) - FDataLink.DataSet.RecNo); |
1071 |
|
end; |
1072 |
|
|
1073 |
+ |
procedure TDBControlGrid.DoSelectNext(Data: PtrInt); |
1074 |
+ |
begin |
1075 |
+ |
FDataLink.DataSet.MoveBy(1); |
1076 |
+ |
end; |
1077 |
+ |
|
1078 |
|
procedure TDBControlGrid.DrawAllRows; |
1079 |
|
begin |
1080 |
|
inherited DrawAllRows; |