title: How to achieve multiple Radiobutton databinding in silverlight mvvm?
body: <p>I have a question about my Silverlight5 and MVVM pattern ..</p>
  
  <p>In my usercontrol window I have 2 radiobutton controls and I have grouped together the radiobutton controls using <code>GroupName="sex"</code>.</p>
  
  <p>Syntax is:</p>
  
  <pre><code>&lt;RadioButton IsChecked="{Binding EntityValue,Mode=TwoWay}" Content="Male"
               GroupName="Sex"
               Visibility="{Binding DataTypeID, Converter={StaticResource radioconverter}}"/&gt;
  
  &lt;RadioButton IsChecked="{Binding EntityValue,Mode=TwoWay}" Content="Female"
               GroupName="Sex"
               Visibility="{Binding DataTypeID, Converter={StaticResource radioconverter}}"/&gt;
  </code></pre>
  
  <p>I have inserted the checked values to the database using Entity Framework successfully.</p>
  
  <p>For example: my database will be look like this:</p>
  
  <pre><code>CustomerID  | CustomerName | EntityValue |
  ------------------------------------------
  1           | raj          | Male
  2           | reena        | Female
  </code></pre>
  
  <p>Database name is: <code>CDetails</code></p>
  
  <p>If I have select the <code>customerID=1</code> means the value <code>Male</code> to be bound to my <code>radioButton1</code></p>
  
  <p>and </p>
  
  <p>if I have select the <code>customerID=2</code> means the value <code>Female</code> to be bound to my <code>radioButton2</code></p>
  
  <p>How is it possible?</p>