Edit: This is probably a cleaner way to do it (untested, but should work).
You should actually bind directly (using a Binding
) to the radiobuttons, but handle the Binding.Parse
and Binding.Format
events.
In the 'Format' event, set the Checked properties and in the Parse
event, you'll save the value back based on which one is checked.
Original Idea: Without creating a custom control or subclassing, the simplest way is probably not to bind directly but to load and save the values yourself as an intermediary.
One way is:
Subscribe to the BindingSource.CurrentItemChanged
event and set the radiobutton Checked
properties accordingly.
Subscribe to the RadioButton.CheckedChanged
events and set the underlying data source appropriately.