Groups | Blog | Home
all groups > vb.net data > february 2004 >

vb.net data : Help Data bindings with Radio Buttons


Akin Seigmund Walter-Johnson III
2/26/2004 12:42:09 PM
Can anyone show me an example on how to do databindings, with currency
Manager for
a group of radio buttons.

Rich
2/27/2004 11:21:26 AM
I will assume your radio buttons exist inside of a
GroupBox container. If this is your case, then you can go
to the property sheet of the Groupbox control
goto/DataBindings and select your dataset/table/column to
bind to. Then with currency manager (cma)

Dim cma As CurrencyManager

Private Sub Form1_Load(...)
cma = CType(BindingContext(ds1.Tables("tbl1")),
CurrencyManager)
cma.Position = 0
....
End Sub

Every time you increment cma, the value of your bound
field will be displayed in the Groupbox control - the
radio button with the same value will be selected in the
Groupbox control.

Rich


[quoted text, click to view]
AddThis Social Bookmark Button