Hello,
I inherited a project and I'm trying to get the value of the cells within a GridHyperLinkColumn.
The existing code is as follows:
The DataTextField property is returning the data field specified in the properties, as it should. I need the actual cell values which will in turn display a corresponding graphic in the cell.
Thanks very much,
Jim
I inherited a project and I'm trying to get the value of the cells within a GridHyperLinkColumn.
The existing code is as follows:
Protected Sub gvLaneDBStatus_ItemDatabound(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles gvLaneDBStatus.ItemDataBound
If TypeOf e.Item Is GridDataItem Then
Dim dataItem As GridDataItem = DirectCast(e.Item, GridDataItem)
Dim hl As GridHyperLinkColumn = CType(gvLaneDBStatus.MasterTableView.Columns.FindByUniqueName("LnStatus"), GridHyperLinkColumn)
hl.ImageUrl = "../../images/" + CStr(hl.DataTextField) + ".gif"
End If
End Sub
The DataTextField property is returning the data field specified in the properties, as it should. I need the actual cell values which will in turn display a corresponding graphic in the cell.
Thanks very much,
Jim