private void ValuesGrid_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 0) { ValuesGrid.BeginEdit(true); } else if (e.ColumnIndex == 4) { ValuesGrid.BeginEdit(true); ((ComboBox)ValuesGrid.EditingControl).DroppedDown = true; } }
private void ValuesGrid_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { ValuesGrid.BeginEdit(true); }