title: Update button fires edit event handler
body: <p>I have a gridview. Markup is like this...</p>
  
  <pre><code>&lt;asp:GridView ID="gvwServers" runat="server" class="gvwServers"  
  AutoGenerateColumns="false"  OnRowEditing="gvwServers_Edit" 
  onrowcancelingedit="gvwServers_Cancelling" onrowdeleting="gvwServers_Deleting" 
  onrowupdated="gvwServers_Updated" onrowupdating="gvwServers_Updating"
  AutoGenerateEditButton=true AutoGenerateDeleteButton=true&gt;
  
    &lt;columns&gt;
      &lt;asp:CommandField ButtonType="Button" EditText="Edit" ShowEditButton="true" /&gt;
      &lt;asp:CommandField ButtonType="Button" EditText="Delete" ShowDeleteButton="true" /&gt;
  
      ...Bound fields and template fields etc...
  </code></pre>
  
  <p>My Code-behind has this...</p>
  
  <pre><code>protected void gvwServers_Edit(object sender, GridViewEditEventArgs e)
  {
      gvwServers.EditIndex = e.NewEditIndex;
      gvwServers.DataBind();
  }
  protected void gvwServers_Updated(object sender, GridViewUpdatedEventArgs e)
  {
      gvwServers.DataBind();
  }
  
  protected void gvwServers_Updating(object sender, GridViewUpdateEventArgs e)
  {
      gvwServers.DataBind();
  }
  protected void gvwServers_Deleting(object sender, GridViewDeleteEventArgs e)
  {
      gvwServers.DataBind();
  }
  protected void gvwServers_Cancelling(object sender, GridViewCancelEditEventArgs e)
  {
      e.Cancel = true;
      gvwServers.EditIndex = -1;
      gvwServers.DataBind();
  }
  </code></pre>
  
  <p>The thing is that most of these routines fire correctly ie Edit, Delete, Cancel. <em>Except</em> when I click the Update button, <code>gvwServers_Edit()</code> fires. Why is this happening? How do I make the Update button click fire <code>gvwServers_Updating()</code>?</p>
  
  <p><strong>Update:</strong> My issue is resolved <a href="https://stackoverflow.com/questions/4862305/asp-does-not-appear-to-be-emitting-correct-gridview-markup-for-dopostback">here</a>.</p>