Torna al Thread
Dim literal As literal = DirectCast(GridView1.Columns(7), literal)
Dim DRV As System.Data.DataRowView = CType(e.Row.DataItem, System.Data.DataRowView)
If DRV IsNot Nothing Then
If DRV(11).ToString <> "1" Then
literal = ""
e.Row.Cells(6).BackColor = Drawing.Color.Red
Else
literal = "<a href='link'> " & Convert.ToString(DataBinder.Eval(e.Row.DataItem, "desc_intrv") & " </a>"
e.Row.Cells(6).BackColor = Drawing.Color.white
End If
End If