mardi 1 novembre 2016

DataGridView CheckBox column doesn't apply changes to the underlying bound object

I have a list of Record objects that serve as rows in my DataGridView. Each Record has a new bool value Helped. Sure enough, this new value shows up as check mark in my form.

As it stands currently, when this box is checked it doesn't seem to change the value of Helped bool in the corresponding Record.

Is there some sort of read-only property I need to change? How do I pass a click on my form back as a change in value of its DataSource?

Edit: I've found the System.Windows.Forms.DataGridViewEditMode.EditOnEnter property, but I'm still not seeing my Record.Helped property get updated.




Aucun commentaire:

Enregistrer un commentaire