Check box on a DataGridView

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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...
 
Hi,
Could you post your full code here,so that we can reproduce that error and
provide solutions to it.
 
I resolved the problem by creating an EventHandler for the datagridview.
Everytime the check box changes the selected row is updated to the database.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top