I'm looping through the columns in a row, and I need to find out if a column contains a null value. So I have code as follows:
For iStage = 1 To MAX_STAGES
If Not String.IsNullOrEmpty(rowRenewal("User_" & iStage)) Then
Unfortunately, a null value will actually produce this message:
"Conversion from type 'DBNull' to type 'String' is not valid."
Is there a different way I could check for the null value in this case?