title: How to bind a list property of an object to ComboBoxColumn in wpf datagridview?
body: <p>I have an object below. I have a list of these called sourceListofData.</p>
  
  <pre><code>public class StringWrapper
      {
          public string Value { get; set; }
          public int ID { get; set; }
          public string Name { get; set; }
          public List&lt;string&gt; options{ get; set; }
  
          public StringWrapper(string val)
          {
              this.Value = val;
              this.Name = val;
              options = new List&lt;string&gt;();
              options.Add("test1");
              options.Add("test2");
  
  
          }
      }
  </code></pre>
  
  <p>My goal is to have 1 text column and 1 combobox column. The text column displays Value and the combo box column will have comboboxes where they can link their source to the options property. </p>
  
  <p>Here's how I have the text box in my xaml: </p>
  
  <pre><code>   &lt;DataGrid
          AutoGenerateColumns="False" ColumnWidth="*"
          CanUserReorderColumns="False" 
          HorizontalAlignment="Left"
          Margin="12,161,0,116"
          Name="dgEditConfig" Width="685"
          ItemsSource="{Binding sourceListOfData}"
          AlternatingRowBackground="#CFFA893D" IsReadOnly="True" HeadersVisibility="Column"&gt;
  
          &lt;DataGrid.Columns&gt;
              &lt;DataGridTextColumn Header="Table Columns" Binding="{Binding Value}"/&gt;
  </code></pre>
  
  <p>My thinking is, I should just have to point to that property of the StringWrapper and it should be able to determine the combobox items like below: </p>
  
  <pre><code>            &lt;DataGridComboBoxColumn ItemsSource="{Binding sourceListOfData}"
                                  DisplayMemberPath="Name"
                                  SelectedValuePath="ID"
                                  SelectedValueBinding="{Binding options }" /&gt;
  </code></pre>
  
  <p>But no matter what path variations I make, I don't even see a combobox show up on the datagridview. I see the textboxcolumn just fine. What am I doing wrong? </p>