Although in autogeneratecolumns 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_ItemDataBound event:
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType ==
ListItemType.AlternatingItem){
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 "autogenerate
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