title: CellContentClick event doesn't always work
body: <p><code>CellContentClick</code> event doesn't always work - it sometimes works and sometimes not, randomly.</p>
  
  <p>My code is below, I am checking by using breakpoints but program  sometimes enters the block and and some times not. Why is it so?</p>
  
  <pre><code>private void dataGridView1_CellContentClick_1(object sender, DataGridViewCellEventArgs e)
  {
      textBoxUserName.ReadOnly = true;
      button2.Visible = true;
      int index = e.RowIndex;
      if (!(index &lt; 0))
      {
          DataGridViewRow row = dataGridView1.Rows[index];
          textBoxUserName.Text = row.Cells["UserNAme"].Value.ToString();
          textBoxPassword.Text = row.Cells["Pass"].Value.ToString();
          dataGridView1.Focus();
      }
      dataGridView1.Focus();
  }
  </code></pre>