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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.