title: RowEditing is fired when update button is clicked in GridView
body: <p>I have created a <code>GridView</code> as below:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      GridView gv = new GridView();
      gv.ID = pId.ToString();
      gv.AutoGenerateEditButton = true;
      gv.DataKeyNames = ids;
      gv.RowEditing += gv_RowEditing;
      gv.RowUpdating += gv_RowUpdating;
      bindGv(pId, gv);
  }
  </code></pre>
  
  <p>I have also written the following methods:-</p>
  
  <p><code>RowUpdating</code>:</p>
  
  <pre><code>void gv_RowUpdating(object sender, GridViewUpdateEventArgs e)
  {
      GridView gv = sender as GridView;
      GridViewRow row = (GridViewRow)gv.Rows[e.RowIndex];
      ProductCategory pc = context.ProductCategories.First(s =&gt; s.Name ==gv.ID );
      TextBox txtName = row.FindControl("txtName") as TextBox;
      pc.Name = txtName.Text;
  }
  </code></pre>
  
  <p><code>RowEditing</code>:</p>
  
  <pre><code>void gv_RowEditing(object sender, GridViewEditEventArgs e)
  {
      GridView gv = sender as GridView;
      gv.EditIndex = e.NewEditIndex;
      bindGv(Convert.ToInt32(gv.ID), gv);
  }
  </code></pre>
  
  <p>But when I ran the codes in debugging mode, clicking on the update button invokes <code>gv_RowEditing</code> method instead of <code>gv_RowUpdating</code>. What is the problem?</p>