本文介绍了datagrid combobx问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的代码


here is my code


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;



           }

当用户输入键时,将弹出一个combobx,但他无法在combobx显示项目上移动光标...任何伙伴都可以告诉我如何移动光标????????



谢谢Advanced

as user enter key press a combobx is popup but he is not able to move cursor on combobx display item ...can any buddy tell me how to move cursor ????????



thanks in advanced

推荐答案


这篇关于datagrid combobx问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 02:55