title: WPF DataGridTemplateColumn Binding Behavior
body: <p>I have a DataGridTemplateColumn setup below.  My issue is when I change a row employee using the combobox, I see some other rows change values as well.  I figured it was related to the binding somehow, but it is weird because I can't seem to see my itemsource datacontext (Tasks) while inside the celleditingtemplate but i can inside the celltemplate.</p>
  
  <pre><code>&lt;UserControl.Resources&gt;
      &lt;CollectionViewSource x:Key="EmployeeViewSource" Source="{Binding Path=Employees}" /&gt;
  &lt;/UserControl.Resources&gt;
       &lt;DataGrid AutoGenerateColumns="False" ItemsSource="{Binding Path=Tasks}"&gt;
       &lt;DataGrid.Columns&gt;
          &lt;DataGridTemplateColumn Header="Employee Name"&gt;
              &lt;DataGridTemplateColumn.CellEditingTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;ComboBox DisplayMemberPath="Name" ItemsSource="{Binding Source={StaticResource EmployeeViewSource}}" SelectedValue="{Binding Path=EmployeeID}" SelectedValuePath="EmployeeID" /&gt;
                  &lt;/DataTemplate&gt;
              &lt;/DataGridTemplateColumn.CellEditingTemplate&gt;
              &lt;DataGridTemplateColumn.CellTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;TextBlock Text="{Binding Path=Employee.Name, Mode=OneWay}" /&gt;
                  &lt;/DataTemplate&gt;
              &lt;/DataGridTemplateColumn.CellTemplate&gt;
          &lt;/DataGridTemplateColumn&gt;
  </code></pre>
  
  <p>The relevant ViewModel like similiar to below:</p>
  
  <pre><code>Class TaskViewModel : ViewModelBase
  {
      public ObservableCollection&lt;Task&gt; Tasks { get; private set; }
      Public ObservableCollection&lt;Employee&gt; Employees { get; private set; }
  
  }
  </code></pre>
  
  <p>The Tasks/Employee Models are both entity generated classes that have some fields.</p>
  
  <hr>
  
  <p>Update: I am starting to think maybe this has to do with the IsSynchronizedWithCurrentItem property.  Perhaps all of the comboboxes are trying to sync because there binding collection current selected is channging.</p>