RadioButton & DataBinding

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • havana7
    New Member
    • Jul 2007
    • 13

    RadioButton & DataBinding

    Hi everybody,

    Is there a method to bind 2 RadioButton on 1 Database bit Field?

    Thanx
  • nateraaaa
    Recognized Expert Contributor
    • May 2007
    • 664

    #2
    Originally posted by havana7
    Hi everybody,

    Is there a method to bind 2 RadioButton on 1 Database bit Field?

    Thanx
    Why not do a simple if else to determine whether the radio button should be checked or not?

    if(database bit Field == 1)
    {
    RadioButton1.Ch ecked = true;
    RadioButton2.Ch ecked = false;
    }
    else
    {
    RadioButton1.Ch ecked = false;
    RadioButton2.Ch ecked = true;
    }

    Nathan

    Comment

    Working...