private void dgv_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
foreach (DataGridViewRow r in dgv.Rows) r.Visible = false;
}
This code works, but also works if ColumnHeaders (not only cells) is doubleClicked ?
I want to run it only if a cell is doubleClicked.
CellDoubleClick should mean CellDoubleClick and not HeaderDoubleClick.
1 Answer