C# Winform DataGridView设置选定的区域为不可编辑
C# Winform DataGridView设置选定的区域为不可编辑
C# Code:
//设置选中的单元格只读
for (int i = 0; i <= dataGridView1.SelectedCells.Count - 1; i++)
dataGridView1.SelectedCells[i].ReadOnly = true;
//来源:C/S框架网(www.csframework.com) QQ:23404761
//设置选中的单元格只读
for (int i = 0; i <= dataGridView1.SelectedCells.Count - 1; i++)
dataGridView1.SelectedCells[i].ReadOnly = true;
//来源:C/S框架网(www.csframework.com) QQ:23404761
版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
NewDoc C/S框架网