databound column to hyper link column

S

susan

i have a number of databound columns, how do i convert one of them
into a hyper link column, while still populating the data from the
database?

thanks,
 
S

S. Hussain Akbar

Use a TemplateColumn

<asp:TemplateColumn>
<ItemTemplate>
<asp:HyperLink id="MyLink"
Text='Click here'
NavigateUrl='http://www.mysite.com'
runat="server" />
</ItemTemplate>
</asp:TemplateColumn>

Hussain
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top