Binding group of option buttons to one Dataset column

  • Thread starter Thread starter shimonsim
  • Start date Start date
S

shimonsim

Hi,
Is it possible to bind a group of option buttons (in win forms) to on
Dataset Column?
Thanks,
Shimon
 
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.
 
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.
 
Back
Top