<DataGridTemplateColumn Header="Brand Code">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<ComboBox IsEditable="True" Text="{Binding Path=BrandCode, Mode=OneWayToSource}" ItemsSource="{Binding Brands}"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
上記のコードはリストを表示しますが、値を選択すると BrandCode に割り当てられません。
しかし、次の列をクリックして編集すると、値が BrandCode に割り当てられます。
誰でも助けることができますか?