public override void CommitEditingStyle(UITableView tableView, UITableViewCellEditingStyle editingStyle, NSIndexPath indexPath)
 {
     switch (editingStyle)
     {
         case UITableViewCellEditingStyle.Delete:
             RemoveRowCommand.Execute(indexPath.Row);
             break;
         case UITableViewCellEditingStyle.None: break;
     }
 }
        private void CellClick(object query)
        {
            CellRequest cellRequest = (CellRequest)query;

            if (cellRequest.CellType == CellType.RowAppend)
            {
                AppendRowCommand.Execute(cellRequest);
            }
            else if (cellRequest.CellType == CellType.ColumnAppend)
            {
                AppendColumnCommand.Execute(cellRequest);
            }
            else if (cellRequest.CellType == CellType.RowRemove)
            {
                RemoveRowCommand.Execute(cellRequest);
            }
            else if (cellRequest.CellType == CellType.ColumnRemove)
            {
                RemoveColumnCommand.Execute(cellRequest);
            }
        }
Example #3
0
 protected virtual void UpdateCommands()
 {
     RemoveRowCommand.RaiseCanExecuteChangedEvent();
     EditRowCommand.RaiseCanExecuteChangedEvent();
 }
 void Grid_CurrentItemChanged(object sender, CurrentItemChangedEventArgs e)
 {
     RemoveRowCommand.RaiseCanExecuteChangedEvent();
     EditRowCommand.RaiseCanExecuteChangedEvent();
 }