/// <summary> /// Ends the editing mode. /// </summary> /// <param name="staysOnInserting">Indicates whether should stay on inserting.</param> /// <returns>The row presenter.</returns> public RowPresenter EndEdit(bool staysOnInserting = true) { if (!IsEditing) { throw new InvalidOperationException(DiagnosticMessages._VerifyIsEditing); } var elementManager = ElementManager; elementManager?.SuspendInvalidateView(); var result = RowManager.EndEdit(staysOnInserting); elementManager?.ResumeInvalidateView(); return(result); }