Thanks Linda.

I too couldn't find anyway to do it in the documentation. While floating in
my pool (great place to think) it hit me that I could use a TemplateColumn
for the field and it would allow me to access more than 1 field at a time to
build the link. Still it seems like there should be someway to use
DataNavigateUrlFormatString. If I find it I'll post it.

Marshall

-----Original Message-----
From: Linda Wienholt [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 7:09 PM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] How do you bind a DataGrid HyperLinkColumn to more
than one field ?


Hi Marshall,

I have previously had the same problem.  I searched the documentation and
could not find a way of linking multiple fields using the
DataNavigateUrlFormatString property.  In the end I actually created the
composite field in the database and then used the
DataNavigateUrlFormatString property.  Alternatively you could create a
composite field in the dataset before you bind to the datagrid and then
just link that field.

Linda Wienholt

On Mon, 22 Apr 2002 14:30:17 -0400, Marshall Harrison
<[EMAIL PROTECTED]> wrote:

>I have a HyperLinkColumn defined as :
>
><Columns>
>        <asp:HyperLinkColumn HeaderText="Term"
DataNavigateUrlField="LACMPY"
>DataNavigateUrlFormatString="SqlLoadsDetails.aspx?Company={0}"
>DataTextField="LATRMC" />
></Columns>
>
>In reality the hyperlink needs two fields to make it work (i.e
>SqlLoadsDetails.aspx?Company=ABC&LoadNo=1 ) with each parameter coming from
>a different database field. I can't seem to find a way to get both fields
>into the DataNavigateUrlFormatString. Can someone tell me how to do this?
>
>Thanks.
>
>Marshall Harrison
>
>You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
>subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to