コード例 #1
0
 public bool CommitFieldEdit()
 {
     if (IsEditingField)
     {
         if (editingCell.CommitEdit())
         {
             editingCell = null;
             OnEditStateChanged();
             return(true);
         }
     }
     return(false);
 }
コード例 #2
0
        public bool BeginFieldEdit()
        {
            if (!canBeginEdit)
            {
                return(false);
            }

            var currentCellService = UIServiceProvider.GetService <ICurrentCellService>(CellContainerOwner);

            editingCell = currentCellService.CurrentCellContainer as VirtualTableCell;
            if (editingCell != null)
            {
                if (editingCell.BeginEdit())
                {
                    OnEditStateChanged();
                    return(true);
                }
            }
            return(false);
        }