Databound RadioButton

D

Dustin Davis

Setting up databindings for controls like textboxes and checkboxes is
pretty straightforward, but how do you set up a databound radio group?

For example, say I have source_type in my database that is an integer.
Valid values would be 1 and 2. I want to radio buttons on a form, one
for Directory and the other is Scanner. If they select Directory, the
value would be set to 1 and if they select scanner the value would be
set to 2 after updating the table adapter. How is this done?

I've thought of setting up some kind of hidden control use that to
control the radio buttons, but I was wondering if this was the best way.

Thanks,
Dustin
 
D

Dustin Davis

Thanks Mike. I'm thinking that seems like overkill (and kind of ugly).
Maybe I'll just use a combo box instead, or try a hidden field technique.
 

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