views:

40

answers:

2

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. Eventhough, I am not able to edit any cell.Please, give me a solution.

+1  A: 

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.

ho1
Every thing I had done what you told, but also I can't able to edit.
informative
Did you check Adam's suggestion about columns? Also, what is the `EditMode` set to? And how are you trying to edit the DGV?
ho1
Yes, I cheked. Everything is correctly given as You and Adam suggested. Now, I am searching for some programmatic edits. Thanks for your suggestion.
informative
I deleted old DGV and add a new DGV. Now, I can able to edit, delete. Thanks for your solution.
informative
A: 

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

Adam