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.
 
Back
Top