title: codebehind binding of DataGridComboboxColumn in wpf datagrid
body: <p>How do do this binding in Code behind:</p>
  
  <pre><code>&lt;Grid &gt;
      &lt;Grid.Resources&gt;
          &lt;ObjectDataProvider x:Key="ProductDataProvider" ObjectType="{x:Type local:clsPurchaseOrderList}" MethodName="GetProducts" /&gt;
      &lt;/Grid.Resources&gt;
  </code></pre>
  
  <p>where my datagrid is as :</p>
  
  <pre><code>&lt;my:DataGrid Name="dgvPurchaseOrder"
                               ItemsSource="{Binding}" 
                               SelectionUnit="CellOrRowHeader"
                               TabIndex="3"&gt;
                      &lt;my:DataGrid.Columns&gt;
  
                          &lt;my:DataGridComboBoxColumn 
                                         Width="100"
                                         Header="Product Code"
                                         SelectedValueBinding="{Binding Path=Product_Id,UpdateSourceTrigger=PropertyChanged}"                                                                                       
                                         SelectedValuePath="Product_Id"
                                         DisplayMemberPath="Product_Code"                                           
                                         ItemsSource="{Binding Source={StaticResource ProductDataProvider}}"&gt;
                              &lt;my:DataGridComboBoxColumn.EditingElementStyle&gt;
                                  &lt;Style TargetType="ComboBox"&gt;
                                      &lt;Setter Property="IsEditable" Value="True" /&gt;
                                  &lt;/Style&gt;
                              &lt;/my:DataGridComboBoxColumn.EditingElementStyle&gt;
                          &lt;/my:DataGridComboBoxColumn&gt;
                                     .
                                     .
                                     .
                      &lt;/my:DataGrid.Columns&gt;
                  &lt;/my:DataGrid&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>I want to bind the datagridComboboxColumn in codebehind how to accomplish this</p>