Display image in Datagrid
I am trying to display an image in a datagrid. I have a field in the database that is true or false. What I want to do is if the field is true, then display the true image in the datagrid, otherwise display the false image.
VB Code:
Dim dtUsers As JHALibrary.ADORoutines.CDataTableAdvanced
Dim drUsers As DataRow
dtUsers = objConn.GetUsersForProduct(ProductID)
For Each drUsers in dgUsers.Rows
If(dgUsers("FieldName") <> 0) Then
'Display the true image
Else
'Display the false image
End If
Next
dgUsers.DataSource = dtUsers
dgUsers.DataKeyField = "EnhancementSubmitterID"
dgUsers.DataBind()
I am lost as to what code I should place there, since nothing seems to work.