默认情况下如何在gridview的第一行上使光标 [英] how to make cursor by default on first row of gridview
本文介绍了默认情况下如何在gridview的第一行上使光标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的应用程序中,我希望默认情况下在网格视图中的当前位置显示在第一行.但它会显示在gridview
in my application i want cursur position in gridview to be displayed on first row by default. but it showing on last row record in gridview
推荐答案
上的最后一行记录中.
您可以在RowDataBound
中进行.
看看类似的讨论; http://www.velocityreviews.com/forums/t102772- how-to-set-focus-in-a-gridview.html [
Sounds like you want to set focus on gridviews first row control.
You can do it inRowDataBound
.
Have a look at similar discussion; http://www.velocityreviews.com/forums/t102772-how-to-set-focus-in-a-gridview.html[^]
绑定网格后,您可以在网格上预渲染事件中找到第一列第一行的文本框控制,并设置焦点.
After your grid has been bound you could on the grid pre-render event find the textbox contol of the first row of the first column and set the focus of that.
这篇关于默认情况下如何在gridview的第一行上使光标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文