I have a Datagrid and DataGridTemplateColumn which is ComboBox
<DataTemplate x:Key="ComboBoxPackagingType">
<ComboBox SelectedItem="{Binding PackagingType.SelectedItem, Mode=TwoWay}" ItemsSource="{Binding PackagingType.ItemsSource}"/>
</DataTemplate>
…
<DataGridTemplateColumn CellTemplate="{StaticResource ComboBoxPackagingType}"/>
The SelectedItem is never changing the value after selecting an Item from list.
I set the breakpoints on both get and set functions and it is stopping on get function after changing the ItemSource of my DataGrid but never on the set function after selecting an Item from list.
Why?
Try adding UpdateSourceTrigger=PropertyChanged to the binding of your ComboBox’s selected item like so:
This worked for me.