title: Populate a ComboBox in a DataGrid in C#
body: <p>How can I show the items of the <code>List&lt;string&gt; Sections</code> as a <code>Combobox</code> under the Sections field in a DataGrid myDataGrid.</p>
  
  <pre><code>List&lt;string&gt; Sections = new List&lt;string&gt; {"C50", "C40", "C30"};
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/81f7l.png" alt="enter image description here"></p>
  
  <p>Currently I'm using the below code to populate the rest of the fields in myDataGrid.</p>
  
  <pre><code>var data = from row in Building.Columns
              select new
              {
                  row.Id,
                  row.X,
                  row.Y,
                  row.StartElevation,
                  row.EndElevation,
                  row.FoundationHeight,
                  Sections = ""
              };
  myDataGrid.ItemsSource = data;
  </code></pre>