Hello Andreas,
I cannot exactly reproduce the issue you are facing. Please make sure that you have not set that row in Edit mode explicitly from code behind.
For second scenario, one suggestion is you can close the insert form while opening Edit form in
ItemCommand event. Here is the sample code that I tried which worked as expected.
C#:
Thanks,
Shinu.