title: How to delete the current cell in DataGridView?
body: <p>How can I delete a current cell in a DataGridView. I am trying the code below, but it is deleting all cells except the current one. </p>
  
  <pre><code>private void dgvPurchase_CellValidating(object sender, DataGridViewCellValidatingEventArgs e)
  {
      for (int i = 0; i &lt; datagridview.Columns.Count; i++)
      {
          for (int j = 0; j &lt; datagridview.Rows.Count; j++)
          {
              datagridview.Rows[j].Cells[i].Value="";
          }
      }
  }
  </code></pre>