title: Forcing non null values in DataGridView cells while editing
body: <p>Hello I am writing a application that required the user to input the first name, last name and telephone #. These values can not be null.  </p>
  
  <p>What I am trying to accomplish is to validate the data and If the value is null to select the cell that is in question and force them to edit it or they will get the same error over and over again. </p>
  
  <p>The data gets properly checked, however the cell doesn't get re selected and begin editing.  It just selects whatever cell I clicked on after the validation.  Here is my code.</p>
  
  <pre><code>private void datagridCustomers_CellValidating(object sender, DataGridViewCellValidatingEventArgs e)
  {
      curCell = datagridCustomers.Rows[e.RowIndex].Cells[e.ColumnIndex];
  
      if (e.ColumnIndex == 0)
      {
          if (e.FormattedValue.ToString() == string.Empty)
          {
              MessageBox.Show("Test");
              datagridCustomers.CurrentCell = curCell;
              curCell.Selected = true;
              datagridCustomers.BeginEdit(true);
          }
      }
  }
  </code></pre>