vendredi 17 avril 2020

Checkboxes are keeping myCurrencyManager.AddNew() from working properly

I have a fully functional Windows forms app developed with a read-only datagridview bound to an Access DB.
Databound textboxes are used to edit fields. I then added 3 Checkbox fields to the DB, datagridview and the form. Then added chkName.DataBindings.Add("Checked", DBTable,"Field") just like the Textboxes. The checkboxes work properly displaying the correct data.

Only now when I try to add a row using myCurrencyManager.AddNew() it doesn't work. It does nothing except add a non-accessible row to the end of the datagridview. When I comment out the Checkbox DataBindings lines, everything works properly (without functioning checkboxes).

Any ideas what is wrong?
Thanks.




Aucun commentaire:

Enregistrer un commentaire