通过DATATABLE将属性值分配给GRIDVIEW中的HYPERLINK [英] Assign Property Value to HYPERLINK present in GRIDVIEW from DATATABLE

查看:99
本文介绍了通过DATATABLE将属性值分配给GRIDVIEW中的HYPERLINK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



我有一个GridView,其中只有一列。这是超链接类型。



另一张桌子,我有名字和路径。



现在我想给超链接的文本和超链接URL的路径命名。





我怎么能这样做?



请帮帮我...

Hi Friends,

I am having a GridView in which only one column is present. It is of Type Hyperlink.

Another one table , I am having name and its path.

Now i want to give the name to the Text of the Hyperlink and the path to the Hyperlink URL.


How can i do this ?

Please help me ...

推荐答案

在GridView的Row_Bound内,



1)找到Grid的控件,即超链接。



2)将文本添加到此超链接具有文本的列



3)将NavigateUrl添加到此超链接,其中包含具有URL的列。
Inside the Row_Bound of the GridView,

1) Find the control of the Grid ie Hyperlink.

2) Add the Text to this hyperlink with the column which is having Text

3) Add the NavigateUrl to this hyperlink with the column which is having URL.


这篇关于通过DATATABLE将属性值分配给GRIDVIEW中的HYPERLINK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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