if (e.KeyChar == 13) { panel4.Enabled = false; if (dataGridView1.CurrentCell.ColumnIndex == 0) { cmb.SelectedIndexChanged += new EventHandler(cmb_SelectedIndexChanged); this.cmb.Location = this.dataGridView1.GetCellDisplayRectangle(0, rowindex, true).Location; this.cmb.Show(); this.dataGridView1.Controls.Add(cmb); cmb.Select(); cmb.Visible = true; cmb.SelectedIndexChanged += new EventHandler(cmb_SelectedIndexChanged); dgvc = (DataGridViewCell)dataGridView1[dataGridView1.CurrentCell.ColumnIndex, dataGridView1.CurrentCell.RowIndex]; //dgvc.Value = cmb.SelectedText; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)