How to edit a cell in DataGridView?
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.
精彩评论