如何在网格视图的页脚上设置焦点。 [英] How to set focus on footer of grid view.

查看:101
本文介绍了如何在网格视图的页脚上设置焦点。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已使用页脚模板在网格视图中实现了插入功能。最初我将页脚的可见性设置为false。在按钮上单击我显示页脚。我想要点击按钮时焦点应该在页脚。请建议如何做到这一点。

解决方案

< pagefooter class =notdisplay>



 notdisplay  
{
display none;
}



on按钮单击交换类显示



 display  
{
显示 block
}





问候:)


您可以将焦点设置为控件页脚中的网格视图

(TextBox)(gv_Name.FooterRow.Cells [ 1 ]。FindControl(< span class =code-string>  txt_Name)))。fouse()



希望它能起作用

这应该可以帮助你..

http://论坛.asp.net / t / 906851.aspx [ ^

I have implemented insert functionality in grid view by using footer template. Initially I have set the visibility of the footer to false.On a button click I am showing the footer. I want when button is clicked the focus should be at the footer. Pls suggest how to do this.

解决方案

<pagefooter class="notdisplay">

.notdisplay
{
display:none;
}


on button click swap class to display

.display
{
display:block
}



regards :)


You can set focus to the control of grid view in footer

(TextBox)(gv_Name.FooterRow.Cells[1].FindControl("txt_Name"))).fouse()


Hope so it will work


This should help you..
http://forums.asp.net/t/906851.aspx[^]


这篇关于如何在网格视图的页脚上设置焦点。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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