jeudi 6 octobre 2016

System.Window.Form.CheckBox databinding won't get hit

I have a problem with System.Window.Form.CheckBox databinding. I Generate a checkbox and then map it's value to a property on a BindingSource via Checkbox -> Properties -> DataBindings -> Checked -> BindingSource - PropertyValue. I then have a CheckedChanged event that get's triggered when i click on the checkbox. However on click the BindingSource property is not updated. Because of this I have to use checkbox Design -> Name to get the value of the checkbox. Should the binding be done in another way? I can map strings this way with no problem but for some reason a checkbox bool seems harder to map.




Aucun commentaire:

Enregistrer un commentaire