private void dataGridView1_CellEnter(object sender, DataGridViewCellEventArgs e) { if ((dataGridView1.CurrentCell.ColumnIndex > 0) && (dataGridView1.CurrentCell.ColumnIndex <= 7)) { dataGridView1.ClearSelection(); dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Selected = true; vehicleGridComboBox.Location = this.dataGridView1.GetCellDisplayRectangle(e.ColumnIndex, e.RowIndex, true).Location; } else if (dataGridView1.CurrentCell.ColumnIndex > 7) { vehicleGridComboBox.Hide(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)