Binding SelectedItem of ComboBox in DataGrid with different type
问题 I have a DataGrid which contains ComboBox as column. Let consider DataGrid having ItemsSource as ObservableCollection and ComboBox ItemsSource is List . I want to set the ComboBox SelectedItem property based on property in DataGrid ItemsSource. However Product class has property ProductTypeId of type int and not ProductType. So how can I set ComboBox SelectedItem so that it display value of Product.ProductTypeId as selected. And also I want to bind SeletedItems with Mode = TwoWay so that