954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Hyperlink in gridview (columns are created dynamically)

hai.
currently i m using asp.net with vb (2.0 framework).
here i have created a gridview and values has been populated.
for the column 3,4,5 alone, i want to make the values as hyperlink, so that if user clicks that link it will redirect to a particular page (all links will redirect to same page). here the columns which is binding to gridview is also dynamic.

So how can i achieve it?
Help me! - KARAN

karan_21584
Light Poster
32 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

Hi Karan,

Try this :

<asp:HyperLinkField DataNavigateUrlFields="TransNo,CategoryID" SortExpression="TransNo" DataNavigateUrlFormatString="Edit.aspx?TransNo={0}&CategoryID={1}" DataTextField="TransNo" HeaderText="Link" />


Hope helpfull.

Thanks,

Kusno.

Kusno
Junior Poster
191 posts since Aug 2007
Reputation Points: 11
Solved Threads: 17
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You