databinding radio buttons

P

Pauly

I have a group of three radio buttons on a group box. In
my database I have three columns all of data type bit. I
want to bind each button so that if it is 1 then it
selects the appropriate button. Currently I have the
checked property of each radio button bound to the field
in the data source and the dataset fills without a
problem. But when I call the addnew method of the binding
manager base, it doesn't add a new record. It doesnt give
me an error and the count proerty of the bmb is
incremented, but the position property doesn't point to
the supposed new blank record. After further
investigation I discovered that a new row in the datatable
was not added and the problem is caused by the way I have
bound my radio buttons. Why don't radio buttons have the
checkstate property like the check boxes? What other
property of the radio button can I bind that acts like the
checkstate. Thanks for your help!
 
P

Pauly

I guess I wasn't clear...I HAVE the checked property bound
now, but it causes problems when I use the addnew method
of bmb. I want something similar to checkstate of the
checkbox, but binding the checked property of the radio
button DOES NOT act the same way.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top