Display hyperlink image in webgrid cell.

7 replies. Last post: June 24, 2013 11:42 PM by Yudi
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

My cell is set to "image"  The following code constructs and formats the image properly; however it does not show in the cell.

Dim Otext As String = "<img src="
    Dim wText As String = " width=" + """" + "200px" + """"
    Dim hText As String = " height=" + """" + "82px" + """"
    Dim CText As String = " />"
    Protected Sub WebGrid1_InitializeRow(sender As Object, e As ISNet.WebUI.WebGrid.RowEventArgs) Handles WebGrid1.InitializeRow
        WebGrid1.RootTable.Columns.GetNamedItem("ImageShow").CellImage = Otext + " """ + e.Row.Cells(3).Text + """ " + wText + hText '+ CText
        WebGrid1.RootTable.Columns(2).MaxHeight = Unit.Pixel(82)
        'Response.Write(Otext + " """ + e.Row.Cells(3).Text + """ " + wText + hText + CText)
    End Sub

What am I doing wrong?

All times are GMT -5. The time now is 12:49 AM.
Previous Next