private ComboBox combo = new ComboBox(); private void PONewMain_Load(object sender, EventArgs e) { combo.Hide(); this.dataGridView1.Controls.Add(combo); string s = cmb_purchase.Text;
}
private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) {
this.combo.Location = this.dataGridView1.GetCellDisplayRectangle(e.ColumnIndex, e.RowIndex, true).Location;
combo.Text = dataGridView1.CurrentRow.Cells[0].Value.ToString(); this.combo.Show();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)