I have a tricky problem.
I have a datagrid with multiple rows. In each row, I have a column
that needs to display multiple hyperlinks.
In other words each row has an id, seq no. ship no and the potential
for one or many partcodes. Each part code when clicked needs to open a
new page based upon that part code.
I have many rows in the datagrid and each row is unique in that it can
have one or more than one part code.
Have any of you done this before?
I have tried many different ways and have come up empty. Any help
would be greatly appreciated.
BUZZMAN
On Sun, 24 Oct 2004 11:00:43 +0200, "ReidarT" <> wrote:
>Thanks for your answer but this works fine now. If you use the property
>builder and select the field in the URL field and the prefix in the URL
>fromat string it works fine.
>reidarT
>"Jos" <> skrev i melding
>news:%...
>> ReidarT wrote:
>>> I am trying to insert a hyperlink column in a datagrid
>>> the field consist of a http://www.something.no/text.asp?id=FieldID
>>> where FieldID is the field from the sql-server
>>> I normally would have concatenated the text and the field
>>> "http:\\www.something.no/text.asp?id=" & FieldID,
>>> but I don't know how to "grab" the field in the propertybuilder of the
>>> datagrid.
>>
>> I'm afraid you can't do this in a hyperlink column.
>>
>> I suggest converting the hyperlink column to a template
>> column, and using a databinding expression like this:
>>
>> <a href="http://www.something.no/text.asp?id=<%#
>> Databinder.Eval(Container.dataItem,"FieldID")
>> %>">click here</a>
>>
>> --
>>
>> Jos
>>
>>
>