title: Binding to DataGridComboBoxColumn from collection
body: <p>Trying to bind to a collection in WPF, I got the following to work:</p>
  
  <p>XAML:</p>
  
  <pre><code>&lt;toolkit:DataGrid Name="dgPeoples"/&gt;
  </code></pre>
  
  <p>CS:</p>
  
  <pre><code>namespace DataGrid
  {
      /// &lt;summary&gt;
      /// Interaction logic for Window1.xaml
      /// &lt;/summary&gt;
      public partial class Window1
      {
          private readonly ObservableCollection&lt;Person&gt; personList = new ObservableCollection&lt;Person&gt;();
  
          public Window1()
          {
              InitializeComponent();
  
              personList.Add(new Person("George", "Jung"));
              personList.Add(new Person("Jim", "Jefferson"));
              personList.Add(new Person("Amy", "Smith"));
  
              dgPeoples.ItemsSource = personList;
          }
      }
  }
  </code></pre>
  
  <p>unnessecary probably but here is Person class:</p>
  
  <pre><code>namespace DataGrid
  {
      public class Person
      {
          public string fName { get; set; }
          public string lName { get; set; }
  
          public Person(string firstName, string lastName)
          {
              fName = firstName;
              lName = lastName;
          }
      }
  }
  </code></pre>
  
  <p>But what I really need is this in <strong>DataGridComboBoxColumn</strong> 's. Here are my revisions:</p>
  
  <p>XAML:</p>
  
  <pre><code>&lt;toolkit:DataGrid Name="dgPeoples" Grid.Row="0" AutoGenerateColumns="False"&gt;
      &lt;toolkit:DataGrid.Columns&gt;
          &lt;toolkit:DataGridComboBoxColumn Width="5*"/&gt;
          &lt;toolkit:DataGridComboBoxColumn Width="5*"/&gt;
      &lt;/toolkit:DataGrid.Columns&gt;
  &lt;/toolkit:DataGrid&gt;
  </code></pre>
  
  <p>C#:</p>
  
  <p>Stays same.</p>
  
  <p><strong>Problem</strong> now is that I get empty combobox columns! Any ideas how I can get this to work?</p>
  
  <p>In the long run I need 2 way binding, where a double click on the firstname column brings up the comobo box which then holds the options of all possible first names in the collection (i.e. George, Jim and Amy).</p>
  
  <p>Grateful any assistance!</p>