现在,我需要的是当我按向上和向下键时,列表框中选定的项目将相应地更改. [英] Now what i need is when i press up and down key the listbox selected items will change accordingly.

查看:50
本文介绍了现在,我需要的是当我按向上和向下键时,列表框中选定的项目将相应地更改.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带列表框控件的datagridview.当我编辑单元格时,列表框是可见的,并在列表框中搜索单元格中的内容.我无法按上键.

现在我需要的是当我按向上和向下键时,列表框中选定的项目将相应地更改.

i have a datagridview with listbox control. while i am editing a cell the listbox is being visible and searching in the listbox for what is in the cell. i am unable to catch the up down key.

Now what i need is when i press up and down key the listbox selected items will change accordingly.

Plz help me to solve it.

推荐答案

您说的是在编辑单元格时,列表框是可见的,并在列表框中搜索内容.细胞.我无法按上键.
您是说您仍然在编辑模式下拥有一个单元格(即输入焦点)吗?在这种情况下,所有击键都将被该单元格捕获,您必须将焦点移到ListBox上才能响应键.
You say while i am editing a cell the listbox is being visible and searching in the listbox for what is in the cell. i am unable to catch the up down key.
Do you mean that you still have a cell in edit mode (i.e. has the input focus)? In that case all keystrokes will be captured by that cell, you will have to move the focus to the ListBox in order for it to respond to the keys.


这篇关于现在,我需要的是当我按向上和向下键时,列表框中选定的项目将相应地更改.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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