Data Binding With radio Buttons

    I have one form, one combobox that fills textboxs when i select from the combobox, and 3 radiobuttons. When I switch from one radiobutton to the next, i want the data to come from my data tier to fill the info requested by the named radio button. 
     I am having trouble with the databinding. I click on first radio button, It works fine. i can select from the and cbobox fills and databinding works great. I click on second radio button to change data from the data tier and i got the cbobox to fill with the field i want but when i go to databind nothing shows. I click back on first radio button and i cant databind no more. Text boxs dont fill.

Heres what i tried. 
under first radio button, i used handles for all three and tried if statements. (no luck) Do i maybe need to use select case, with this  
I have the databinding code in the combo box using if statements. 

 Static blnFieldsBound As Boolean = False
 Try

            If Not blnFieldsBound Then
                If radMusic.Checked Then
i get dataset from data tier
(data binding goes here)
 blnFieldsBound = True
  ElseIf radMovies.Checked Then
i get dataset from data tier
(data binding goes here)
blnFieldsBound = True

im thinking the blnfield has something to do with my problem
Do i need to clear databinding before new databind with radio button selections

anyhelp you can give me would be greatly appreciated, thank you, spin



Answer this question

Data Binding With radio Buttons

  • Mandy Sweet

    I figured it out. 12/11/04
  • Data Binding With radio Buttons