procedure TForm1.DBGrid1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if key=Vk_down then if table1.RecNo=table1.RecordCount then key:=0;
end;
procedure TForm1.DBGrid1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if key = VK_DOWN then
begin
key := 0;
Table1.Next;
if Table1.Eof then Table1.Cancel;
end;
end;
procedure TForm1.DBGrid1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if key = VK_DOWN then
begin
key := #0;
Table1.Prior;
end;
end;