When you use a HyperLinkColumn in a datagrid, the datagrid create's a HyperLink web control in the grid's cell. So you have to reference the HyperLink control throught the cell's controls collection and convert to a HyperLink:
CType(dataGridItem.Cells(0).Controls(0), HyperLink)
You can then access any of the HyperLink's properties.
CType(dataGridItem.Cells(0).Controls(0), HyperLink).Text
CType(dataGridItem.Cells(0).Controls(0), HyperLink).NavigateUrl
Peter
|