SPECIAL OFFER        Order and save right now!
20% off with the 729824315 dicscount code for Ultimate Pack and any another product for Delphi from Greatis Programming!

⤷ Set focus to DBGrid for editing

Use SetFocus method and EditorMode property of DBGrid. Also, you need to send EM_SETSEL message.

procedure TForm1.Button1Click(Sender: TObject);
var
  CurrentWindowFocus: THandle;
begin
  DbGrid1.SetFocus;
  DbGrid1.EditorMode:=True;
  CurrentWindowFocus:=Windows.GetFocus;
  SendMessage(CurrentWindowFocus, EM_SETSEL, 0, 0);
end;
More for developers
Databases for Amazon Associates
Amazon Categories
Amazon Nodes