I am looping through rows in a DataGridView as follows:
For Each orow As DataGridViewRow In GV_NS.Rows
If orow.Cells(0).Value.Length = 0 Then
//Skip this row and go to next row
Else
//do this
End If
Next
I would like to be able to skip to the next row if the first column is null. I tried just using Next in If orow.Cells(0).Value.Length = 0, but it was throwing the syntax error If must end with matching End If. Any suggestions?
You could also just reverse your test.