title: How to bind data from xml tag to combo box in xamdatagrid or datagrid in wpf?
body: <h2>xml file.</h2>
  
  <pre><code>&lt;Products&gt;
     &lt;ProductTemplate&gt;
         &lt;ProductID&gt; 1&lt;/ProductID&gt;
         &lt;ProductLot&gt;11&lt;/ProductLot&gt;
         &lt;Product&gt;product1&lt;/product&gt;
         &lt;Product&gt;product1&lt;/product&gt;
  &lt;ProductTemplate&gt;
  &lt;Products&gt;
   .....
    ....
  </code></pre>
  
  <p>I'm able to get "productID" and "productLot" in xamdatagrid. Now I've to add "Product" into xamdatagrid as a comboBox. Below is the code in  xaml file.
  
          
              
                  
                      
                          
                          </p>
  
  <pre><code>                    &lt;igDP:UnboundField Name="Product" Label="Product Name"&gt;
                          &lt;igDP:UnboundField.Settings&gt;
                              &lt;igDP:FieldSettings EditorType="{x:Type igEditors:XamComboEditor}" AllowEdit="True"&gt;
                                  &lt;igDP:FieldSettings.EditorStyle&gt;
                                      &lt;Style TargetType="{x:Type igEditors:XamComboEditor}"&gt;
                                          &lt;EventSetter Event="Loaded" Handler="Combo_Loaded"/&gt;
                                          &lt;Setter Property="ItemsSource" Value="{Binding Items}" /&gt;
  
                                      &lt;/Style&gt;
                                  &lt;/igDP:FieldSettings.EditorStyle&gt;
                              &lt;/igDP:FieldSettings&gt;
                          &lt;/igDP:UnboundField.Settings&gt;
                      &lt;/igDP:UnboundField&gt;
                  &lt;/igDP:FieldLayout.Fields&gt;
              &lt;/igDP:FieldLayout&gt;
          &lt;/igDP:XamDataGrid.FieldLayouts&gt;
      &lt;/igDP:XamDataGrid&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>Now the challenge is "Product" values are not populating in combo box.</p>
  
  <p>below is the display() function viewmodel class</p>
  
  <pre><code>public void display(XamDataGrid dataGridView1)
          {
  
  
              XmlReader xmlFile;
              xmlFile = XmlReader.Create("C:/Wafers/WaferGen.xml", new XmlReaderSettings());
              DataSet ds = new DataSet();
              ds.ReadXml(xmlFile);
              dataGridView1.DataContext = ds.Tables[0]; 
  }
  </code></pre>
  
  <p>I would like to know how to retrieve the values in "product" from xml file and then how to bind to the combo box inside the xamdatagrid?</p>