title: WPF custom datagrid phantom header overlap
body: <p>I have written a custom control which derives from Datagrid.
  When I use the custom grid, it displays an overlapping column header behind others and I'm not sure why.
  Here's a screenshot of my issue:</p>
  
  <p><a href="https://i.stack.imgur.com/cbEZj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cbEZj.png" alt="Phantom column header overlapping actual columns"></a></p>
  
  <p>Here's the XAML I use to call it:</p>
  
  <pre><code>&lt;FDG:FilterDataGrid x:Name ="Jurisds"  MaxHeight="400" AutoGenerateColumns="False" VerticalScrollBarVisibility="Visible" HeadersVisibility="Column"&gt;
  &lt;DataGrid.Columns&gt;
      &lt;DataGridTextColumn Header="Region" Binding = "{Binding Region, Mode=OneWay}"/&gt;
      &lt;DataGridTextColumn Header = "Municipality" Binding = "{Binding Jurisd, Mode=OneWay}"/&gt;
      &lt;DataGridTextColumn Header = "Analysis" Binding = "{Binding AnalysisExists, Mode=OneWay}" /&gt;
      &lt;DataGridTextColumn Header = "Brief" Binding = "{Binding StratBriefExists, Mode=OneWay}" /&gt;
      &lt;DataGridHyperlinkColumn Header="Missing Nbhds" Binding="{Binding MissingNbhds, Mode=OneWay}"&gt;
      &lt;DataGridHyperlinkColumn.ElementStyle&gt;
          &lt;Style&gt;
          &lt;EventSetter Event="Hyperlink.Click" Handler="nbhdsScreen"/&gt;
          &lt;/Style&gt;
      &lt;/DataGridHyperlinkColumn.ElementStyle&gt;
      &lt;/DataGridHyperlinkColumn&gt;
      &lt;DataGridHyperlinkColumn Header="All Strats Approved" Binding="{Binding StratsApproved, Mode=OneWay}"&gt;
      &lt;DataGridHyperlinkColumn.ElementStyle&gt;
          &lt;Style&gt;
          &lt;EventSetter Event="Hyperlink.Click" Handler="stratsScreen"/&gt;
          &lt;/Style&gt;
      &lt;/DataGridHyperlinkColumn.ElementStyle&gt;
      &lt;/DataGridHyperlinkColumn&gt;
  &lt;/DataGrid.Columns&gt;
  &lt;/FDG:FilterDataGrid&gt;
  </code></pre>
  
  <p>In the code-behind I set the ItemsSource to an object called <strong>JurisdictionData</strong>.
  It looks like it's auto-generating a column header and then generating the proper columns.  Why is it creating this JurisdictionData header and how do I stop/remove it?</p>