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