Exemplo n.º 1
0
        /// <summary>
        /// Cancels the editing mode.
        /// </summary>
        public void CancelEdit()
        {
            if (!IsEditing)
            {
                throw new InvalidOperationException(DiagnosticMessages._VerifyIsEditing);
            }

            var elementManager = ElementManager;

            elementManager?.SuspendInvalidateView();
            RowManager.CancelEdit();
            elementManager?.ResumeInvalidateView();
        }