informative
informative

Reputation: 63

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

Upvotes: 1

Views: 2600

Answers (2)

Adam Houldsworth
Adam Houldsworth

Reputation: 64467

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

Upvotes: 1

Hans Olsson
Hans Olsson

Reputation: 54999

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.

Upvotes: 1

Related Questions