You'll need a HyperLinkColumn instead of a BoundColumn for your name column:
<asp:HyperLinkColumn DataTextField="NameColumn" DataNavigateUrlField="IDColumn"
DataNavigateUrlFormatString="Details.aspx?ID={0}"> </asp:HyperLinkColumn>
-Brock
DevelopMentor
http://staff.develop.com/ballen
> Hi,
>
> I've got a DataGrid displaying ID, Name, Email and Notes field from a
> table. Now I'd like to put a Hyperlink under the value in the
> name-column (or, if possible, under the complete row) which will point
> to a details-page with the value from the ID field built into the
> link.
>
> Sample:
> ID|Name|Email|Notes
> 213|Peter Parker|peteratspidernetdotcom|be brave
> 214|Robin Hood|robinatsherwooddotcom|be smart
> The Links id like to build should look somewhat like
> "herodetails.aspx?id=213".
>
> Could somebody point me into the righ direction? Thanks in advance!
>