I have LIst of the Items that assigned to ItemsSource of the ComboBox. Right now almost everything is working like I need. But I can't understand why ComponentId is not updating.
Thanks a lot for the help.
<xcdg:Column Title="Title" Width="300" FieldName="ComponentId">
<xcdg:Column.CellContentTemplate>
<DataTemplate>
<ComboBox
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
DisplayMemberPath="Name"
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type views:BunkerEditView}}, Path=DataContext.ComponentList}"
SelectedValue="{xcdg:CellEditorBinding}"
IsEnabled="{Binding ElementName=BunkerEditWindow, Path=DataContext.SelectedItem.CanChangeContent}"
SelectedValuePath="Id"/>
</DataTemplate>
</xcdg:Column.CellContentTemplate>
</xcdg:Column>
I tried to use CellEditor, but then it will show me GUID of the Component instead of the Name.Thanks a lot for the help.