1.通过设置单元格为只读属性,可以控制不同的用户具有不用的访问权限

如:设置某一列只读,

dataGridView1.Columns[1].ReadOnly = true;

  

设置某一行只读

dataGridView1.Rows[2].ReadOnly = true;

  

设置某一单元格只读 

dataGridView1[2, 2].ReadOnly = true;

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-23
猜你喜欢
  • 2021-10-09
  • 2022-12-23
  • 2021-10-22
  • 2021-12-09
  • 2022-01-27
  • 2022-12-23
  • 2021-06-14
相关资源
相似解决方案