如何通过从DataGridView的ComboBox中按ENTER键移动到下一个列? [英] How to move to the next Column by pressing ENTER key from a ComboBox of a DataGridView?
本文介绍了如何通过从DataGridView的ComboBox中按ENTER键移动到下一个列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经以某种方式管理DataGridView,以便每当用户在Column中按ENTER键时,插入点将移至同一行的下一个Column(不是默认值:移至下一行).现在我的问题是,如何通过从DataGridView的ComboBox中按ENTER键移动到下一个列?
拜托,任何人给我指路.
在此先感谢您.
I have managed the DataGridView in a way so that whenever an user press ENTER in a Column, the insertion point moves to the next Column of the same row (not the default: moves to the next Row). Now my question is, how to move to the next Column by pressing ENTER key from a ComboBox of a DataGridView ?
Please, anyone show me the way.
Thanks in advance.
推荐答案
我还没有尝试这样做,但是您可以查看我在此处使用的代码:
带有ComboBox事件的DataGridView [已解决] [
I have not tried to do this, but you can look at the code I use here:
DataGridView with ComboBox events [Solved][^]
I think you could add the event to the combobox control this way.
这篇关于如何通过从DataGridView的ComboBox中按ENTER键移动到下一个列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文