john230873
Programmer
I have a Dbgrid box and I want the Enter key to have the same behavior as when a user presses the tab key, I thought this would do it but it doesn't seem to work.
procedure TForm1.DBGrid1KeyPress(Sender: TObject; var Key: Char);
begin
If Key = #13 then Key := #9;
inherited KeyPress (Key);
end;
procedure TForm1.DBGrid1KeyPress(Sender: TObject; var Key: Char);
begin
If Key = #13 then Key := #9;
inherited KeyPress (Key);
end;