If the focus cannot be set on the buttons, then the focus never leaves the grid, and then it nevers stops editing, therefore, you need to call StopEditing inside the button click
If the focus cannot be set on the buttons, then the focus never leaves the grid, and then it nevers stops editing, therefore, you need to call StopEditing inside the button click