Binding WPF Combobox within Datagrid in MVVM not saving changes
I have a DataGrid defined as such with a MVVM design pattern:

    <DataGrid Margin="10" Height="385" Width="1000" ItemsSource="{Binding Inspection.Details}" SelectedItem="{Binding SelectedDetail, Mode=TwoWay}" AutoGenerateColumns="False" CanUserAddRows="False" x:Name="grdDetails" CanUserSortColumns="True" HorizontalScrollBarVisibility="Visible" CanUserResizeColumns="True">
         <DataGrid.Columns>
            <DataGridTemplateColumn   Header="Code" Width="120" SortMemberPath="MFGCode">
              <DataGridTemplateColumn.CellTemplate>
                <DataTemplate>
                 <Grid>
                     <ComboBox FontSize="20" ItemsSource="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type UserControl}},Path=DataContext.MFGCodes}" DisplayMemberPath="Value" SelectedValuePath="Value"  SelectedValue="{Binding MFGCode,Mode=TwoWay}"></ComboBox>
                 </Grid>
               </DataTemplate>
             </DataGridTemplateColumn.CellTemplate>
          </DataGridTemplateColumn>
       </DataGrid.Columns>
    </DataGrid>

The Combobox is being populated correctly, by binding to a ObservableCollection<ConfigurationItem> within the ViewModel. There are also other columns (not presented here) that are being correctly bound to various properties on an Inspection defined in the view model. 

On inital load, the combobox CORRECTLY binds to the selectedvalue on the InspectionDetail that represents the MFGCode.

The only problem is, when I change the value in the combobox, the new SelectedValue is not being saved to the SelectedDetail's MFGCode property as I would expect with a TwoWay binding.

I can provide ViewModel code as it would be helpful, just ask.

Thanks!
Binding WPF Combobox within Datagrid in MVVM not saving changes
===

I have a DataGrid defined as such with a MVVM design pattern:

    <DataGrid Margin="10" Height="385" Width="1000" ItemsSource="{Binding Inspection.Details}" SelectedItem="{Binding SelectedDetail, Mode=TwoWay}" AutoGenerateColumns="False" CanUserAddRows="False" x:Name="grdDetails" CanUserSortColumns="True" HorizontalScrollBarVisibility="Visible" CanUserResizeColumns="True">
         <DataGrid.Columns>
            <DataGridTemplateColumn   Header="Code" Width="120" SortMemberPath="MFGCode">
              <DataGridTemplateColumn.CellTemplate>
                <DataTemplate>
                 <Grid>
                     <ComboBox FontSize="20" ItemsSource="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type UserControl}},Path=DataContext.MFGCodes}" DisplayMemberPath="Value" SelectedValuePath="Value"  SelectedValue="{Binding MFGCode,Mode=TwoWay}"></ComboBox>
                 </Grid>
               </DataTemplate>
             </DataGridTemplateColumn.CellTemplate>
          </DataGridTemplateColumn>
       </DataGrid.Columns>
    </DataGrid>

The Combobox is being populated correctly, by binding to a ObservableCollection<ConfigurationItem> within the ViewModel. There are also other columns (not presented here) that are being correctly bound to various properties on an Inspection defined in the view model. 

On inital load, the combobox CORRECTLY binds to the selectedvalue on the InspectionDetail that represents the MFGCode.

The only problem is, when I change the value in the combobox, the new SelectedValue is not being saved to the SelectedDetail's MFGCode property as I would expect with a TwoWay binding.

I can provide ViewModel code as it would be helpful, just ask.

Thanks!