Not sure why you are showing the source code. I simply use the Collection
dialog, and it works. You are not reading the help closely enough. I JUST
went though this myself at work here this morning. They mention how one
setting over rides the others. You want DataTextField (what displays) as
Company Name, and DataURLField (used in the URL) as Company ID
Jeff
"coosa" <co*****@gmail.com> wrote in message
news:11*********************@i39g2000cwa.googlegro ups.com...
I did actually; as a sample:
<asp:HyperLinkField DataNavigateUrlFields="COMPANY_ID"
DataNavigateUrlFormatString="~/Company/Page.aspx?COMPANY_ID={0}"
DataTextField="COMPANY_ID" DataTextFormatString="Info"
HeaderText="Company Info" Text="Details" />
is nested inside <columns> in the Gridview.
The only displayed item for this column are always hyperlinked "Info"
in the DataTextFormatString property.
So what i want semantically is to display the actual company name as a
hyperlink. I have tried to replace for instance
DataNavigateUrlFields="COMPANY_NAME" with
DataNavigateUrlFields="COMPANY_ID", but it had no effect. When i remove
DataTextFormatString="Info", then the company_id is displayed instead
as a hyperlink.