By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,969 Members | 1,668 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,969 IT Pros & Developers. It's quick & easy.

Check box on a DataGridView

P: n/a
I have a datagridview on a Windows form where one of the columns is a
checkbox. After checking or unchecking the checkbox I try to update the
database. The following error appears

System.InvalidOperationException was unhandled

Edits to Textbox columns update without a problem. Any suggestion on what
I'm doing wrong. Thanks...

--
Tony
Jul 22 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,
Could you post your full code here,so that we can reproduce that error and
provide solutions to it.
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.

"Tony A." wrote:
I have a datagridview on a Windows form where one of the columns is a
checkbox. After checking or unchecking the checkbox I try to update the
database. The following error appears

System.InvalidOperationException was unhandled

Edits to Textbox columns update without a problem. Any suggestion on what
I'm doing wrong. Thanks...

--
Tony
Jul 23 '07 #2

P: n/a
I resolved the problem by creating an EventHandler for the datagridview.
Everytime the check box changes the selected row is updated to the database.
--
Tony
"Manish Bafna" wrote:
Hi,
Could you post your full code here,so that we can reproduce that error and
provide solutions to it.
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.

"Tony A." wrote:
I have a datagridview on a Windows form where one of the columns is a
checkbox. After checking or unchecking the checkbox I try to update the
database. The following error appears

System.InvalidOperationException was unhandled

Edits to Textbox columns update without a problem. Any suggestion on what
I'm doing wrong. Thanks...

--
Tony
Jul 24 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.