title: can't automatically update the total value of the textbox when pressing the delete key on the keyboard
body: <p>I want to sum all the values ​​are automatically entered in column 4 and displays it in the textbox .
  i use this code :</p>
  
  <pre><code>private void totalAll()
  {
      int a = 0, b = 0;
      for (a = 0; a &lt; dataGridView1.Rows.Count; ++a)
      {
          b += Convert.ToInt32(dataGridView1.Rows[a].Cells[3].Value);
      }
      textBox1.Text = b.ToString();
  }
  
  private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
  {
      foreach (DataGridViewRow row in dataGridView1.Rows)
          totalAll();           
  }
  </code></pre>
  
  <p>everything works but when I press the delete key on the keyboard , the total value of the textbox is not updated automatically. its value is not diminished .</p>
  
  <p><a href="https://i.stack.imgur.com/XOnt6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XOnt6.png" alt="before delete"></a></p>
  
  <p><a href="https://i.stack.imgur.com/MRYJo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MRYJo.png" alt="enter image description here"></a></p>