G
Guest
I have a combo which is bound to a List<MyCustomObject>.
One of the properties of MyCustomObject is a boolean which I would like to
bind to a checkbox so that depending on the selection on the combobox, the
checkbox below it would get enabled/disabled accordingly.
How can this be achieved through databinding? I don't want to implement
this through any event handling - just pure databinding.
My initial effort was this:
checkbox.DataBindings.Add("Enabled", combobox,
"SelectedItem.MyBooleanProperty");
However, the above code does not work.
Thanks
One of the properties of MyCustomObject is a boolean which I would like to
bind to a checkbox so that depending on the selection on the combobox, the
checkbox below it would get enabled/disabled accordingly.
How can this be achieved through databinding? I don't want to implement
this through any event handling - just pure databinding.
My initial effort was this:
checkbox.DataBindings.Add("Enabled", combobox,
"SelectedItem.MyBooleanProperty");
However, the above code does not work.
Thanks