我有一个DataGridViewButtonCell
,DataGridView
我想将属性设置Visible
为True。
我努力了:
DataGridView1.Rows("number of row i want").Cells("number of cell i want").Visible = True
不幸的是,它说该属性visible
是read only
。
这是代码:
Private Sub DataGridView1_CellClick(sender As Object, e As DataGridViewCellEventArgs) Handles DataGridView1.CellClick
'does not work
DataGridView1.Rows(e.RowIndex).Cells(6).Visible = True
End Sub
有谁知道我怎么能做到这一点?
谢谢。