Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
530
Looking for help on making a column's values hyperlinks
posted

Hello,

I'm new to this so bear with me if this question has been asked and answered before. I tried doing some searches but couldn't find anything that helped.

I have an UltraWebGrid control that is bound to a datasource. On the page I also have a text box for entering search criteria and a search button. When the page initially opens it shows all rows from database. The text box and button are used to filter what is shown in the grid.

What I'm stuck on is how to make the values of one of the columns show up as hyperlinks instead of just the value. Actually, I've been able to make it show up as a hyperlink but now I'm stuck on how to customize that link.

Let's say the grid has 3 visible columns and one hidden. The hidden one is a GUID of the company represented by that row. The visible columns are company code, company name and company address.

I want the company code column to show the code but as a hyperlink. When clicking on it, I want it to go to a detail page that will show all the info about that company. So the hyperlink should look something like <a href=.../dtlPage.aspx?id=ggg>CCC</a>  where xxx is the guid of that row and CCC is the company code of that row.

I've made the value a hyperlink by going into the Columns Collection Editor, selecting the code column and changing the Behavior | Type option to HyperLink.

But all that does is turn the value into a hyperlink. How do I customize the link so it looks as shown above?

Thanks in advance for any help!