raphael232
Programmer
Hi, i'm using the GridView1_RowDataBound event handler to color rows under certain circumstances. I have the following code:
to get the the ReviewDate from the row but the trouble is that if the review date is null it chucks back an error. How can i check that before setting the reviewdate. Appreciate your help. Thanks
Code:
If e.Row.RowType = DataControlRowType.DataRow Then
Dim ReviewDate As DateTime = DataBinder.Eval(e.Row.DataItem, "ReviewDate")
...
End If
to get the the ReviewDate from the row but the trouble is that if the review date is null it chucks back an error. How can i check that before setting the reviewdate. Appreciate your help. Thanks