在我的程序中,我包含了一个DataGridView,当表单加载时就会填充它。当它第一次加载时,我已经将整个表单设置为只读。但是,如果用户想要编辑其中的数据,他们可以点击我在表单上包含的编辑按钮,这里是代码:
datagrdSnippets.AllowUserToDeleteRows = True 'Allows user to delete rows
datagrdSnippets.ReadOnly = False 'Allows user to edit cells within the data grid
不过,我不希望 datagridview 中的某一列变得可编辑,我该如何编写代码来实现此功能?