title: WPF datagrid styling
body: <p>I want to style a WPF datagrid and it seems to be really easy . As far as I understand I have to have code such as the following:</p>
  
  <pre><code>&lt;Style x:Key="DataGridColumnHeaderStyle" TargetType="{x:Type Custom:DataGridColumnHeader}"  &gt;
  &lt;Setter Property="Background" Value="#88800080" /&gt;
      &lt;Setter Property="Foreground" Value="White" /&gt; 
  &lt;/Style&gt;
  </code></pre>
  
  <p>But my question is ..where do I place this code and how do I let the datagrid know to use the style above ?</p>
  
  <p>Regards,
  S</p>