Although in autogeneratecol umns option, the datagrid does not automatically
generate hyperlink for you, you can implement your code to create hyperlinks.
Following code snippet show how to do it:
In datagrid_ItemDa taBound event:
if (e.Item.ItemTyp e == ListItemType.It em || e.Item.ItemType ==
ListItemType.Al ternatingItem){
foreach (TableCell cell in e.Item.Cells){
cell.Text = "<a href='myUrlSite/myPage.aspx?id= " + cell.Text + "'
target=_blank>" + cell.Text + "</a>"
}
}
HTH
Elton Wang
"ypul" wrote:
Hi ,
Getting to the point directly,
my query output doesnt have fixed columns , so I choosed "autogenera te
columns" datagrid.
I assign this dataset to my datagrid, but now I want my data should be
hyperlinks, so that I can navigate from that page to another, depending on
the link clicked.
how can I do in autogenerate columns
regards
ypul