title: DatagridView cell click event in visual c#
body: <p>I am learning <code>Windows Visual C#</code> so I am new to this. I have this code for the cell click event for my DataGridView</p>
  
  <pre><code> private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
      {
        con.  ID = Convert.ToInt32(dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString());
        txtname.Text = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
        txtlname.Text = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();
      }
  </code></pre>
  
  <blockquote>
    <p><strong>The question is:</strong>  Even how many times I click my DataGridView it's not firing my breakpoint. How to solve this?</p>
  </blockquote>