Protected Sub myGridView_RowDataBound(sender As Object, e As GridViewRowEventArgs)
If e.Row.RowType = DataControlRowType.DataRow Then
Dim imgStatus As Image = DirectCast(e.Row.FindControl("imgStatus"), Image)
If imgStatus IsNot Nothing Then
If DataBinder.Eval(e.Row.DataItem, "STATUS") = "1" Then
imgStatus.ImageUrl = "~/Images/true.gif"
Else
imgStatus.ImageUrl = "~/Images/false.gif"
End If
End If
End If
End Sub