title: unable to resolve Datagrid combobox column binding
body: <p>I have a Datagrid that is bound to TeamMembers. In the code behind constructor:</p>
  
  <pre><code> public SetupView(SetupViewModel model)
      {
          InitializeComponent();
          DataContext = model;
          this.model = model;
          ResourceGrid.ItemsSource = model.teamMembers;
          ResourceGrid.DataContext = model;
      }
  </code></pre>
  
  <p>My ViewModel :</p>
  
  <pre><code>public class SetUpViewModel {
  Tasks = new ObservableCollection&lt;string&gt;() { "A", "B", "C", "D" };
  
  }
  </code></pre>
  
  <p>In my XAML , My ResourceGrid is a Data grid that has one ComboBoxColumn :</p>
  
  <pre><code>      &lt;DataGridComboBoxColumn Header="Task" Width="115"  ItemsSource="{Binding 
  Tasks}"  "&gt;
  </code></pre>
  
  <p>the Tasks in the binding refers to the Tasks Collection I declared in my view model. However when I run this it doesn work.</p>
  
  <p>But if I do this where I add combo to Template column and then add items source of combobox to tasks on load combo , it works :</p>
  
  <pre><code>&lt;DataGridTemplateColumn  Header="Task" Width="115"&gt;
                          &lt;DataGridTemplateColumn.CellTemplate&gt;
                              &lt;DataTemplate&gt;
                                  &lt;ComboBox Loaded="LoadATaskEventHandler"/&gt;
                              &lt;/DataTemplate&gt;
                          &lt;/DataGridTemplateColumn.CellTemplate&gt;
                      &lt;/DataGridTemplateColumn&gt;
  
  
  
  private void LoadATaskEventHandler(object sender, RoutedEventArgs e)
      {
  
          ComboBox comboBox = sender as ComboBox;
  
  
          comboBox.ItemsSource=model.Tasks;
  
      }
  </code></pre>
  
  <p>I dotn want to add combobox to template when datagrid supports comobocolumn. Please advise on this. </p>
  
  <p>And what difference in performance and what is the best solution out of the two.</p>