title: Custom edit/delete button Gridview
body: <p>I am using C#.net</p>
  
  <p>I want to add custom edit/delete buttons to my GridView1 (one edit/delete button per row).</p>
  
  <p>However I want the buttons to access another view (editView/deleteView within the same form), rather than edit ‘inline’ etc.</p>
  
  <p>The edit button seems to be working fine. Here’s how I created it manually:</p>
  
  <pre><code>Right clicked on GridView1
  Clicked on ‘Add New Column’
  Field Type: ButtonField
  Header Text: Edit
  Button Type: Button
  Command Name: Edit
  Text: Edit
  </code></pre>
  
  <p>Within the ‘Events’ section (located under properties) for GridView1, I double clicked on the RowEditing, this then created a Event I could access within the code behind.</p>
  
  <pre><code>    protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
      {
          // Access _viewAdd
  
          _multiView1.ActiveViewIndex = 1;
     }    
  </code></pre>
  
  <p>The delete button should access the deleteView (confirmation page) rather than just automatically deleting a row. I want to create a custom method that is triggered when the user selects the delete button.</p>