DataGridViewButtonCell visible 问题 (只有10分了,大家帮我看下)
Dim ButtonCell As DataGridViewButtonCell
Dim i As Integer
For i = 0 To Me.GridView4.Rows.Count - 1
For Each ButtonCell In Me.GridView4.Rows(i).Cells
If ButtonCell.Value = String.Empty Then
' ButtonCell.Visible =False visible is read only
End If
Next
Next
ButtonCell.Visible =False 是只读的属性, 所以这样不行
用什么方法可以达到隐藏或者删除单元格的效果!