Datagrid bound with Datatable with HyperLinkColumn - Duplicate columns

  • Thread starter Thread starter arun.hallan
  • Start date Start date
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
 
Back
Top