title: MonoTouch.Dialog : Advanced Editing
body: <p>I'm trying to put together a detail view that is editable, similar to the iPhone default contacts app.</p>
  
  <p>I have a TableView of contacts and I activate an editable detail view when a cell is selected:</p>
  
  <pre><code>public override void Selected (DialogViewController dvc, UITableView tableView, NSIndexPath path)
  {       
      var editingSection = new Section ("Entity") {
          new StringElement ("First name", "enter", _entity.FirstName),
          new StringElement ("Last name", "enter", _entity.LastName)
      };
  
      var root = new RootElement("Entity Entry") {
          editingSection
      };
  
      var entityEdit = new EntityEdit (root, true);
      ConfigEdit (entityEdit);            
      dvc.ActivateController(entityEdit);
  
  }
  
  void ConfigEdit (DialogViewController dvc)
  {
      dvc.NavigationItem.RightBarButtonItem = new UIBarButtonItem (UIBarButtonSystemItem.Edit, delegate {
          dvc.TableView.SetEditing (true, true);
          ConfigDone (dvc);
      });
  }
  
  void ConfigDone (DialogViewController dvc)
  {
      dvc.NavigationItem.RightBarButtonItem = new UIBarButtonItem (UIBarButtonSystemItem.Done, delegate {
          dvc.TableView.SetEditing (false, true);
          ConfigEdit (dvc);
      });
  }
  </code></pre>
  
  <p>The behavior that I want to change is in the ConfigEdit method. When I first show the view, the elements in the editing section should be StringElements. When I switch to edit mode, the elements should change to entry Elements because I want the ability to delete the row, or edit the text inside the element.   </p>
  
  <p>Is this possible? Is there a better approach to showing read-only elements until edit mode has been set?</p>