N
news.microsoft.com
Hello,
I have two databound radiobuttons which have advanced databinding properties
of onpropertychanged enabled so that I can raise the columnchanged event
whenever the radiobuttons are changed.
In the columnchanged event I am simply accepting changes into the dataset.
There is no dataadapter because it is a standalone dataset.
When one radiobutton is already checked (as opposed to neither) and I select
the non-checked radiobutton, the columnchanged event is raised twice and
erases the checked value of both radiobuttons in the acceptchanges call. It
is raised twice because it is first raised to un-check the first radio
button, and then called again to check the second radio button... but on the
second call it somehow sees that the second radio button is not physically
checked yet, so sends a false value.
This is pretty simple to reproduce and funnily enough nothing seems to be
available on the net to explain this with radiobuttons.
Troy
I have two databound radiobuttons which have advanced databinding properties
of onpropertychanged enabled so that I can raise the columnchanged event
whenever the radiobuttons are changed.
In the columnchanged event I am simply accepting changes into the dataset.
There is no dataadapter because it is a standalone dataset.
When one radiobutton is already checked (as opposed to neither) and I select
the non-checked radiobutton, the columnchanged event is raised twice and
erases the checked value of both radiobuttons in the acceptchanges call. It
is raised twice because it is first raised to un-check the first radio
button, and then called again to check the second radio button... but on the
second call it somehow sees that the second radio button is not physically
checked yet, so sends a false value.
This is pretty simple to reproduce and funnily enough nothing seems to be
available on the net to explain this with radiobuttons.
Troy