【发布时间】:2016-05-20 16:49:27
【问题描述】:
我只想将 datagridview 中的一个单元格设为只读,我尝试了以下方法,但都没有成功。
dgv_parametersetting(2, 0).ReadOnly = True
dgv_parametersetting.Rows(0).Cells(2).ReadOnly = True
For Each r As DataGridViewRow In dgv_parametersetting.Rows
If r.Cells(2).Value = 0 Then
r.Cells(2).ReadOnly = True
End If
Next
谁能给我提供使datagridview视图中的特定单元格只读的语法。
【问题讨论】:
标签: vb.net datagridview