title: WPF Binding in DataGridColumnHeader DataTemplate
body: <p>So, this is an extension to the following question: <a href="https://stackoverflow.com/questions/5760545/style-datagridcolumnheader-with-styles-in-wpf">Style DataGridColumnHeader with Styles in WPF</a></p>
  
  <p>In short, I'm trying to put filters in my DataGridColumnHeaders by templating the column headers with a combobox.  So the difference with the other example is that I'm using ComboBoxes instead.</p>
  
  <pre><code>&lt;Window x:Class="WpfApplication1.MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="MainWindow" Height="300" Width="300" Loaded="Window_Loaded"&gt;
  &lt;Window.Resources&gt;
      &lt;DataTemplate x:Key="MySpecialHeaderTemplate"&gt;
          &lt;ComboBox ItemsSource="{Binding Codes}" /&gt;
      &lt;/DataTemplate&gt;
  &lt;/Window.Resources&gt;
  &lt;Grid&gt;
      &lt;DataGrid&gt;
          &lt;DataGrid.Columns&gt;
              &lt;DataGridTextColumn
                      Binding="{Binding Id}" /&gt;
              &lt;DataGridTextColumn HeaderTemplate="{StaticResource MySpecialHeaderTemplate}"
                      Binding="{Binding Name}" /&gt;
              &lt;DataGridTextColumn HeaderTemplate="{StaticResource MySpecialHeaderTemplate}"
                      Binding="{Binding Age}" /&gt;
          &lt;/DataGrid.Columns&gt;
      &lt;/DataGrid&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p></p>
  
  <p>My question pertains to binding the ComboBox to some values.  I'm currently having issues with binding the ItemsSource to a property in my ViewModel as shown above, but I can't get it to work.  My second question would be how would I alter the code so that I could bind to different values per column??</p>