Edit cell when adding a new line.

I couldn't find a post on this, and didn't want to lose what I found out, so I am posting it here.

I wanted to have a certain cell pop up in edit mode, when adding a new line.

  with asg_CombInputs do
  begin
    FocusCell(1, newRowNum);
    UpdateEditMode;
    EditorMode := True;
  end;



If there is an easier/better way of doing this post it please.




Should be sufficient with

grid.FocusCell(1, newRowNum);
grid.ShowInplaceEdit;