if (e.KeyChar == 13) { if (dataGridView1.CurrentCell.ColumnIndex == 0) { this.cmb.Location = this.dataGridView1.GetCellDisplayRectangle(0, rowindex, true).Location; this.cmb.Show(); this.dataGridView1.Controls.Add(cmb); cmb.Select(); cmb.Focus(); cmb.DroppedDown = true; GetNextControl(cmb, true).Focus(); cmb.SelectedIndexChanged += new EventHandler(cmb_SelectedIndexChanged); e.Handled = true; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)