I have a problem with System.Window.Form.CheckBox databinding. I have code:
checkBox1.DataBindings.Add("Checked", _movementsBindingSource, "Moved", true);
It's working, but i want invert checkBox1.Checked. If Moved is true, then checked = false. Can you help me with this problem?
That's a common problem and you have two options:
_movementsBindingSource
which will be exact inverse of the 'Moved' field and bind to it.By default, databinding doe not have an 'inverse bool binding' sort of an option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With