If it is urgent, you might want to check the January 19th answer to your
post in microsoft.public.dotnet.framework.aspnet.datagridcontrol
Anyway, here's the old answer:
Hi Christopher,
Not sure why you'd want to do that, but here's a way to substitute the text
from a cell with a hyperlink:
Private Sub DataGrid1_ItemDataBound _
(ByVal sender As Object, ByVal e As _
System.Web.UI.WebControls.DataGridItemEventArgs) _
Handles DataGrid1.ItemDataBound
Dim tblcell As TableCell
Dim intCounter As Integer
Dim hlnkcntrl As HyperLink
For intCounter = 0 To e.Item.Cells.Count - 1
tblcell = e.Item.Cells(intCounter)
hlnkcntrl = New HyperLink
hlnkcntrl.Text = tblcell.Text
hlnkcntrl.NavigateUrl = "thepage.aspx"
tblcell.Text = ""
tblcell.Controls.Add(hlnkcntrl)
Next
End Sub
Ken
MVP [ASP.NET]