moongirl129
Programmer
I have a datagridview which is databound to an object. There are 4 properties in this object all boolean which are shown as checkboxes in the datagridview.
I want them to act like radiobuttons so when one is checked the others are all unchecked. So I added a method to my class so that whenever one of these properties is set to true the others are all set to false. This works but ...... the set of each property only seems to fire when focus is lost, not when the property is actually changed.
I've come across this before with a standard checkbox and I know to fix the problem you change the databinding to include DataSourceUpdateMode.OnPropertyChanged. I can't find a similar way of changing this property for the datagridview column. Can anyone help??
I want them to act like radiobuttons so when one is checked the others are all unchecked. So I added a method to my class so that whenever one of these properties is set to true the others are all set to false. This works but ...... the set of each property only seems to fire when focus is lost, not when the property is actually changed.
I've come across this before with a standard checkbox and I know to fix the problem you change the databinding to include DataSourceUpdateMode.OnPropertyChanged. I can't find a similar way of changing this property for the datagridview column. Can anyone help??