Datagrid bound with Datatable with HyperLinkColumn - Duplicate columns

A

arun.hallan

Hi,

I have a DataTable with say three items, an structureid, a name and
description.

Then i have a datagrid with one hyperlink which uses the id. The code
in the page is:


<asp:HyperLinkColumn Target="_blank" DataNavigateUrlField="StructureId"
DataNavigateUrlFormatString="product.aspx?id={0}"
DataTextField="StructureId"
HeaderText="StructureId"></asp:HyperLinkColumn>



When i databind the table to the grid, i get two StructureId columns
instead of one. One with a hyperlink and one without - does anyone know
how to get rid of the non-hyperlink column?

I would like three columns in the grid, the StructureId with hyperlink,
Name and Description.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top