I pull out the data from mysql in datagridview. and double clicking on the line draws a new window with detailed info. but the same doubleclick works on the column header and passes the selected string to the method. How to prevent double click on the title?
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e){ var o=sender as DataGridViewCell; if (!(o is DataGridViewHeaderCell)){} //не работает }