We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Hyperlink in Column


I'm using the asp.net grid control. I want a hyperlink in one column, the URL comes from a field in the database. I don't find any solution on how to link the column to the database filed.

Some fields as an example:

<ej:Column Field="NR" HeaderText="Number" IsPrimaryKey="true" Width="100" />   
<ej:Column Field="URL" HeaderText="Online-Info" Width="100" Template="<a rel='nofollow' href='{{:URL}}'>Link</a>" />

Please provide some feedback on how to link the url to the column in the .aspx file.

Thank you very much!

2 Replies

MZ Michael Ziegler March 2, 2016 02:36 PM UTC

Nevermind, I've found the error. The field name is case sensitive, so in my case it's working with this:

<ej:Column Field="Url" HeaderText="Online-Info" Width="100" Template="<a rel='nofollow' href='{{:Url}}'>Link</a>" />

Thank you,

VA Venkatesh Ayothi Raman Syncfusion Team March 3, 2016 09:34 AM UTC

Hi Michael,

Thanks for using Syncfusion products.

We have happy to hear that your requirement is achieved.

Venkatesh Ayothiraman.

Live Chat Icon For mobile
Up arrow icon