在DataGrid中使用超链接 [英] Using hyperlinks in DataGrid

查看:94
本文介绍了在DataGrid中使用超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个包含5列的datagrid视图,在第二列中,我有3行具有不同的超链接,当我单击这些超链接时,我想导航到不同的页面,但是我的问题是,当我单击时,它导航到了同一页面这3个超链接中的任何一个

[edit]仅主题-尝试描述问题,而不仅仅是如何工作".这可以帮助您也许能够帮助决定查看的内容-OriginalGriff [/edit]



I have a datagrid view with 5 columns, and in the second column i have 3 rows with different hyperlinks, i want to navigate to different pages when i click these hyperlinks, but my problem is, it is navigating to the same page when i click any of these 3 hyperlinks

[edit]Subject only - try to describe the problem, rather than just "How to work". This helps those you may be able to help decide to view - OriginalGriff[/edit]

推荐答案

我认为,当您单击超链接时,网格的rowID就会是第一行的RowID.请检查行ID.

希望这可以工作.
I think when ever you click on the hyperlink the rowID for the grid will be the RowID for first row. Please check for the Row ID.

Hope this may work.


这篇关于在DataGrid中使用超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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