我正在遍历 DataGridView 中的行,如下所示:
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
如果第一列为空,我希望能够跳到下一行。我尝试只使用Next
in If orow.Cells(0).Value.Length = 0
,但它抛出了语法错误If must end with matching End If
。有什么建议么?