Binding group of option buttons to one Dataset column

S

shimonsim

Hi,
Is it possible to bind a group of option buttons (in win forms) to on
Dataset Column?
Thanks,
Shimon
 
R

Roy Osherove

Hi,
Is it possible to bind a group of option buttons (in win forms) to on
Dataset Column?
Thanks,
Shimon

Yes. FOr each option control, do something like this:
MyOptionButton.DataBindings.Add(new
databinding("checked",ds.tables[0].columns[0]).
I'm not sure about the syntax, but this is pretty much the approach you
need.
 
S

shimonsim

Thanks.
I'll need to try it.
Shimon.

Roy Osherove said:
Hi,
Is it possible to bind a group of option buttons (in win forms) to on
Dataset Column?
Thanks,
Shimon

Yes. FOr each option control, do something like this:
MyOptionButton.DataBindings.Add(new
databinding("checked",ds.tables[0].columns[0]).
I'm not sure about the syntax, but this is pretty much the approach you
need.
 

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