title: WPF Custom datagrid column header
body: <p>I need to create a Custom dataGrid DataGridTextColumn like the sketch below:</p>
  
  <p><img src="https://i.stack.imgur.com/zEHDl.jpg" alt="Sketch"></p>
  
  <p>The Red rectangles are TextBox and are used to search within the column.</p>
  
  <p>so far i have implemented a datagrid like this (simplify Version):</p>
  
  <pre><code>        &lt;DataGrid x:Name="CompassLogDataGrid"
                Grid.Row="1"
                Style="{DynamicResource ResourceKey=DataGridStyle}"
                IsTextSearchEnabled="True"&gt;
  
              &lt;DataGrid.Columns&gt;
                  &lt;DataGridTextColumn CellStyle="{StaticResource IdCell}"
                                  x:Name="ID"
                                  Header="ID"
                                  Foreground="Black"
                                  Binding="{Binding ID}"
                                  DisplayIndex="0" /&gt;
  
                  &lt;DataGridTextColumn x:Name="DateGTC"
                                  Header="Date"
                                  Binding="{Binding DateString}"
                                  CellStyle="{StaticResource DateGTCCell}" /&gt;
              &lt;/DataGrid.Columns
  
      &lt;/DataGrid
  </code></pre>
  
  <p>I have no idea how to create those textBoxes. Any clue would be appreciate it</p>