在GridView中找到选定的行 [英] Find the selected row in gridview

查看:82
本文介绍了在GridView中找到选定的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

海,
我在网格视图中动态分配超链接.在网格视图中如何找到选定的链接.

Hai,
I assign hyperlink dynamically in grid view.In the grid view how to find the selected link.

推荐答案


我想您有一个这样的HyperLink标记(我不知道您动态设置它的方法):
Hi,
I presume you have a HyperLink tag like this(I do not know your method of dynamically setting it):
<asp:hyperlinkfield datatextfield="LeadID" datanavigateurlfields="LeadID" datanavigateurlformatstring="CurrentPage.aspx?LeadID={0}" ...  />



当您单击特定的HyperLink时,将显示当前页面.您可以使用Request.QueryString拥有特定的键.

希望对您有所帮助,
干杯.



When you click on a particular HyperLink the current page will be displayed. You can use Request.QueryString to have the particular key.

I hope it will help,
Cheers.


这篇关于在GridView中找到选定的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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