title: WPF Binding list to datagrid editable combobox column
body: <p>So currently I can bind a list of objects to a combobox column from the code but I am having a hard time making it editable</p>
  
  <p>See my code below</p>
  
  <p>My Xaml</p>
  
  <pre><code>&lt;DataGridComboBoxColumn x:Name="dgEmpcmbName" SelectedValueBinding="{Binding ID, UpdateSourceTrigger=LostFocus}" ClipboardContentBinding="{x:Null}" Header="Employee name" Width="Auto"/&gt;
  </code></pre>
  
  <p>My cs file</p>
  
  <pre><code>dgEmpcmbName.ItemsSource = people.ToList();
  dgEmpcmbName.SelectedValuePath = "ID";
  dgEmpcmbName.DisplayMemberPath = "Name";
  </code></pre>
  
  <p>If anyone know how to make it editable or just add an event on SelectionChanged that would be awesome</p>
  
  <p>Thanks</p>
  
  <p>Edit:</p>
  
  <p>Btw this is not a duplicate as I have seen the solutions with the datagrid template column but when I use a template column I can't bind the list from the code.. (I am not saying it is not possible I am saying I can't.. If you can please assist :))</p>