您的位置:首页 > 其它

各种常用的WINFORM控件遍历

2012-09-25 12:25 134 查看
1:删除空白行

For Each row As DataGridViewRow In Me.dgvBloodSugarInfo.Rows
Dim isEmpty = True
For Each cell As DataGridViewCell In row.Cells
If cell.ColumnIndex > 0 And cell.Value IsNot Nothing Then
isEmpty = False
Exit For
End If
Next
If isEmpty Then
dgvBloodSugarInfo.Rows.Remove(row)
End If
Next
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: