I have a DataGrid dg; and I would like to display a DataGridComboBoxColumn with data populated from some list (using binding). Using XAML I have dg.ItemsSource properly set but I do not know, how to set the column’s ItemsSource:
<DataGridComboBoxColumn ItemsSource={?????????} />
James
You can use the datacontext to get the property you are tying to bind to your DataGridComboBoxColumn.Check the below post
Binding a WPF DataGridComboBoxColumn with MVVM