日期:2014-05-19  浏览次数:20813 次

一个DataGridView的问题
DataGridView中如何设置某列可以编辑,其他处于不可编辑状态?比如客户编号这列可以直接输入数据,其他不可以输入。这样代码是怎样控制的?

------解决方案--------------------
dataGridView1.Rows[0].Cells[0].ReadOnly = true;

*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码)

最新版本:20070212

http://www.cnblogs.com/feiyun0112/archive/2006/09/20/509783.html
------解决方案--------------------
this.dataGridView1.Columns[0].ReadOnly = true;
this.dataGridView1.Columns[1].ReadOnly = true;
...