C# Datagridview click specific cell
Problem :
Solution :
How to call Datagridview Cell Click Event in Button_Click
private void dataGridView2_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (e.ColumnIndex == 5 || e.ColumnIndex == 6)
{
DoWork(e.RowIndex);
}
}
Ulasan