开发者

How to edit a cell in DataGridView?

开发者 https://www.devze.com 2023-01-03 23:23 出处:网络
I am working in .NET 2.0 with C# and database is SQL SERVER 2005. I am using DataGridView. I had enabled \"Enable Editing\" Checkbox. Eve开发者_开发知识库nthough, I am not able to edit any cell.Please

I am working in .NET 2.0 with C# and database is SQL SERVER 2005. I am using DataGridView. I had enabled "Enable Editing" Checkbox. Eve开发者_开发知识库nthough, I am not able to edit any cell.Please, give me a solution.


Look at the properties of the DataGridView and make sure that the EditMode is set to the correct value (According to what you need), that ReadOnly is false, that Enabled is true.


Also, individual columns can have a readonly flag, check that too.

0

精彩评论

暂无评论...
验证码 换一张
取 消