title: Bind Datatable to combobox in WPF Grid
body: <p>This is my <strong>XAML Code</strong></p>
  
  <pre><code>    &lt;DataGridTemplateColumn.CellEditingTemplate&gt;
         &lt;DataTemplate&gt;
              &lt;ComboBox Height="22" Name="MyCombobox"  
                        ItemsSource="{Binding RelativeSource={RelativeSource AncestorType=Page},Path=Data._cmbxData}" 
                        DisplayMemberPath="Column1" SelectedValuePath="Column2"&gt;&lt;/ComboBox&gt;
         &lt;/DataTemplate&gt;
      &lt;/DataGridTemplateColumn.CellEditingTemplate&gt;
  </code></pre>
  
  <p>and this is my <strong>CS code</strong></p>
  
  <pre><code>        DataTable _cmbxData = new DataTable();
          _cmbxData.Columns.Add("Column1", typeof(int));
          _cmbxData.Columns.Add("Column2", typeof(String));
  
          _cmbxData.Rows.Add(new object[] { 1,"Value1"});
          _cmbxData.Rows.Add(new object[] { 2, "Value2" });
          _cmbxData.Rows.Add(new object[] { 3, "Value3" });
  </code></pre>
  
  <p>How can I bind this Datatable to Combobox in my Xaml. ??</p>
  
  <p>Thank you All</p>