title: WPF DataGrid Bind Radiobutton Column to Property
body: <p>I've been looking for a while, but I can't seem to find why my datagrid radiobutton column (which is generating) isn't working properly. I can click on the radio buttons, but they don't change. For some background I'm making a real estate management program and this window is the "Edit Property" page. I'm creating a datagrid where the user can select the tenants that have lived in that property as well as the current (or latest) tenant.</p>
  
  <p>Here is my xaml for the datagrid:</p>
  
  <pre><code>&lt;DataGrid VerticalScrollBarVisibility="Auto" CanUserDeleteRows="False" CanUserReorderColumns="False" CanUserResizeRows="False" CanUserAddRows="False" AutoGenerateColumns="False" Margin="5,0,0,0" Width="375" Height="100" ItemsSource="{Binding CurrentProperty.tennants}"&gt;
      &lt;DataGrid.Columns&gt;
          &lt;DataGridCheckBoxColumn Header="Lived Here" Binding="{Binding something}"/&gt; &lt;!-- I'm still working on this. This is a totally different problem. I know how to bind. --&gt;
          &lt;DataGridTemplateColumn Header="Current"&gt;
              &lt;DataGridTemplateColumn.CellTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;RadioButton HorizontalAlignment="Center" GroupName="current" IsChecked="{Binding current, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" /&gt;
                  &lt;/DataTemplate&gt;
              &lt;/DataGridTemplateColumn.CellTemplate&gt;                        
          &lt;/DataGridTemplateColumn&gt;
          &lt;DataGridTextColumn Header="Name" Binding="{Binding name}"/&gt;
      &lt;/DataGrid.Columns&gt;
  &lt;/DataGrid&gt;
  </code></pre>
  
  <p>At the moment, there are 5 tenants that show up in the datagrid (which is what I want) and one of them has the current radiobutton selected (which is what I want). I can't, however select a different radiobutton. It just deselects the current one until I click on it again.</p>
  
  <p>Thanks. I've been going crazy about this for a while now.</p>