In SfDataGrid, Editing is cancelled when you press Esc key. When AddNewRow cell is in edit mode, AddNewRow operation is cancelled when you pressed the Esc key twice.
Since when you press the Esc key in AddNewRow cell which is in edit mode below actions will happen,
On the other hand, you can cancel the AddNewRow operation in single Esc key by
override the GridSelectionController class and cancel the AddNewRow operation in HandleKeyDown event as like below code snippet.
This page will automatically be redirected to the sign-in page in 10 seconds.