I am getting an error to look at my datagridview and if one of the column is empty to highlight the entire row. It is working but spitting an error at the end of the loop.
Here's my For loop to check the value.
For Each row As DataGridViewRow In dgDetail.Rows
Dim service As String = row.Cells(4).Value.ToString
If service = Nothing Then
row.DefaultCellStyle.BackColor = Color.Red
At the end of the loop I get the following error: