title: <DataGrid><DataTemplate><ComboBox> name does not exist
body: <p>I am trying to set up a combo box with in my DataGrid and I am not allowed to set the ItemSource of the combo box (in my in my .xaml.cs  code) because I keep receiving this error "The name 'cboChangeRequestStatus' does not exist in the current context. Don't understand why I can set this in other variations of DataGrid but cannot when I use this set </p>
  
  <pre><code>&lt;DataGridTemplateColumn Header="Status"&gt;
      &lt;DataGridTemplateColumn.CellTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;TextBlock Text="{Binding StatusCode}" /&gt;
          &lt;/DataTemplate&gt;
      &lt;/DataGridTemplateColumn.CellTemplate&gt;
      &lt;DataGridTemplateColumn.CellEditingTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;ComboBox   SelectedValue="{Binding Status, Mode= TwoWay}"
                          SelectedValuePath="StatusId"
                          DisplayMemberPath="StatusCode"
                          Name="cboChangeRequestStatus"/&gt;
          &lt;/DataTemplate&gt;
      &lt;/DataGridTemplateColumn.CellEditingTemplate&gt;
  &lt;/DataGridTemplateColumn&gt;
  </code></pre>