I have a dataGridView
and I am trying to fire an event when a cell is clicked.I have tried using the following events with no avail:
private void dataGridView2_CellClick(object sender, DataGridViewCellEventArgs e)
{
//dosomething
}
private void dataGridView2_CellMouseClick(object sender, DataGridViewCellEventArgs e)
{
//dosomething
}
private void dataGridView2_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
//dosomething
}
private void dataGridView2_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
{
//dosomething
}
private void dataGridView2_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
//dosomething
}
I made sure the dataGridView
's name matched, but none of these events are firing or showing up in the debugger. Am I missing something?