在不使用鼠标Onclick事件的情况下选择Gridview行 [英] Select Gridview row without using mouse Onclick event

查看:92
本文介绍了在不使用鼠标Onclick事件的情况下选择Gridview行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个用于搜索的文本框,当我按下数字或字母键时,数据将显示在gridview上.
现在,我希望当我在文本框中按下向下箭头键时,gridview的第一行被选中,焦点移至该行,以便我可以使用箭头键上下进行操作,这已经发生了,唯一的问题是我必须在gridview的第一行上单击鼠标.

问题:我想当我按下文本框中的向下箭头键时,gridview的第一行被选中,焦点移到了选定的行

感谢所有人
Faiz

Hi,
I have a textbox, which I''m using for searching, when i press a number or alphabet key the data is displayed on the gridview.
Now i want that when i press down arrow key in the textbox, the first row of the gridview got selected and the focus goes to the row so that i can use the a arrow keys to manuver up and down, which is already happening, the only problem is i have to click the mouse on the first row of the gridview.

Problem: i want, that when i press down arrow key in the textbox, the first row of the gridview got selected and the focus goes to the selected row

Thanks to all
Faiz

推荐答案

您好,

对于初学者,我在下面提供了一些链接.但是,您将需要根据需要修改链接中给出的代码.希望能帮助到你.

使用箭头(上/下)键的GridView行导航 [ ^ ]

http://forums.asp.net/t/1193892.aspx/1 [ ^ ]

http://forums.asp.net/t/1246686.aspx/1 [ ^ ]

此致
瓦尼
Hello,

For starters I am providing some links below. However you will need to modify the code given in the links as per your requirement. Hope it helps.

GridView Rows Navigation Using Arrow (Up/Down) Keys[^]

http://forums.asp.net/t/1193892.aspx/1[^]

http://forums.asp.net/t/1246686.aspx/1[^]

Regards,
Vani


这篇关于在不使用鼠标Onclick事件的情况下选择Gridview行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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