How can I programmatically deactivate the current cell and store pending changes in the grid?

Call

TransferCurrentCell();