I'd like to do this entirely in code, no XAML: Given are
DataGridComboBoxColumn myDGCBC = new DataGridComboBoxColumn();
ObservableCollection<string> DataSource = new ObservableCollection<string>{"Option1", "Option2"};
myDGCBC.ItemsSource = DataSource;
ObservableCollection<MyStructure> MyObject = new ObservableCollection<MyStructure>;
and
public class MyStructure
{
... several properties ... // pseudocode, obviously
public string SelectedValue { get; set; }
}
I am interested in (binding) receiving the selected values from all the comboxboxes in the column into the SelectedValue
property.
I tried several ideas from SO, but to no avail.
Help! Thanks.