Nested ComboBox doesn't update source by selection.
Posted
by Shimmy
on Stack Overflow
See other posts from Stack Overflow
or by Shimmy
Published on 2010-04-25T14:50:27Z
Indexed on
2010/04/25
14:53 UTC
Read the original article
Hit count: 443
Hello.
I am using a ComboBox bound under a DataContext:
<tk:DataGridTemplateColumn.CellEditingTemplate>
<DataTemplate>
<ComboBox
ItemsSource="{Binding Source={StaticResource CategoriesCollection}"
DisplayMemberPath="Title"
SelectedItem="{Binding Category}" />
</DataTemplate>
</tk:DataGridTemplateColumn.CellEditingTemplate>
When the row is initiated the value of Category is null. Once I select the first value in the ComboBox it sets it up. But when I select another value, it doesn't get changed.
© Stack Overflow or respective owner