Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Radio buttons not binding correctly

$
0
0

Hello there I've encountered a strange problem in my application that involves the binding of radio buttons.  I thought maybe the problem was unique to my application so I created a dumbed down version of the problem and I get the same result.

I create a custom data set with 3 columns called (one, two three).

I create an instance of this data set on my form.

I create 3 radio buttons and bind the checked property to their respective columns.

When I run the program the radioButton1 is checked.  I then click radioButton 2 setting RB2 to true and RB1 to false.

 

However if I look at the data set I see that Column 1 is true and so is Column 2 when I would expect column 1 to be false if binding was working correctly.

Am I incorrect in assuming this?


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>