I have a problem with datagridview even handler, when I click at the cell i want the value in that cell send to text box, it was work but after i change something that i forgot it can’t work. I’ve try to recreate the datagridview and its event handler but nothing. This is my code
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
textBox1.Text = dataGridView1.Rows[e.RowIndex].Cells[1].ToString();
}

do you have any idea to fix this problem?
You need