各种常用的WINFORM控件遍历
生活随笔
收集整理的這篇文章主要介紹了
各种常用的WINFORM控件遍历
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
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
轉(zhuǎn)載于:https://www.cnblogs.com/leischen/archive/2012/09/25/2701345.html
總結(jié)
以上是生活随笔為你收集整理的各种常用的WINFORM控件遍历的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 查看字符集 oracle
- 下一篇: 美工程序员—每个创业公司都在寻找的传奇人