I don't know if this is the easiest way, but you could just set your
NavigateURL in a function and access the data source there rather, simply
returning a string with the fully constructed link.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows XP
Windows XP Associate Expert
--
"Jongmin" <aplaxas@hotmail.com> wrote in message
news:0b0c01c34b0d$ae6ccd90$a001280a@phx.gbl...
> Hi!
> I am making HyperLinkColumn in datagrid.
>
> It is simple to make the hyerlinkcolumn with one datafield.
> <asp:HyperLinkColumn
> Text="NAME"
> DataNavigateUrlField="NAME"
> DataNavigateUrlFormatString="http://www.aaa.com?Name={0}"
> SortExpression="NAME" />
>
> However, I want to make the hyperlinkconlum with two or
> more datafields
>
> I tried to the following ways... but it didn't work...
>
> 1)
> <asp:HyperLinkColumn
> Text="NAME"
> --->DataNavigateUrlField="ID"
> --->DataNavigateUrlField="NAME"
> DataNavigateUrlFormatString="http://www.aaa.com?ID={0}
> &Name={1}"
> SortExpression="NAME" />
>
> 2)
> <asp:HyperLinkColumn
> Text="NAME"
> --->DataNavigateUrlField="ID, NAME"
> DataNavigateUrlFormatString="http://www.aaa.com?ID={0}
> &Name={1}"
> SortExpression="NAME" />
>
>
> How to make HyperLinkColumn with two or more datafields?
>
> Thanks,
> Jongmin
> ...
>
>