在 DBGrid 的 OnKeyDown 中写:
procedure TForm1.DBGrid1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if (Key = VK_DOWN) then
begin
With (Sender as TDBGrid).DataSource.DataSet do begin
DisableControls ;
Next ;
if EOF then
Key := 0
else
Prior ;
EnableControls ;
end;
end ;
end;