单击或按下DataGridView中的ComboBox时,将焦点转移到另一列 [英] Focus to another column when ComboBox in DataGridView is click or key pressed

查看:78
本文介绍了单击或按下DataGridView中的ComboBox时,将焦点转移到另一列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当单击或按下DataGridView中的ComboBox时,将焦点转移到另一列。



当点击datagridview中的组合框或输入时,如何将焦点集中到列中的下一个单元格用户是否按下了键?



如何在Windows应用程序中使用c sharp编写代码。

Focus to another column when ComboBox in DataGridView is click or key pressed.

how to focus to next cell in teh column when combobox in datagridview was clicked or enter key is pressed by user ?.

for that how to write the code using c sharp in windows application.

推荐答案

到目前为止你有没有尝试过?几天前你问过相同/类似的问题:使用CSharp的Windows应用程序中的DataGridView [ ^ ]



请试试看,这可能并不困难。你需要捕获DataGridView Cell的KeyPress事件。
Did you try anything so far? You asked same/similar question couple of days back: DataGridView in windows application using CSharp[^]

Please try out and see, it might not be difficult. You need to Capture the KeyPress event of DataGridView Cell.


你可以在这里键入应用程序的每一步并等待代码,而不是编程。在11个小时内,您在这里发布了8个问题。如果你得到所有的答案,你将完成大约2个小时的工作。我希望你没有得到报酬。



你可以处理你的按键事件,你可以将焦点设置到另一个单元格。所有这些都是微不足道的,并通过intellisense进行自我记录。
For you to type in every step of your application here and wait for code, is not programming. In 11 hours, you''ve posted 8 questions here. If you get all your answers, you''ll have done about 2 hours work. I hope you''re not being paid for this.

You can handle your key press events, and you can set the focus to another cell. All of this is trivial, and self documenting through intellisense.


这篇关于单击或按下DataGridView中的ComboBox时,将焦点转移到另一列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆