FillerHeader

Nov 14, 2008 at 8:28 PM
I am relativly new to WPF and the DataGrid, I was wondering if there was a way to extend a style to Filler Header

Thanks
Coordinator
Nov 17, 2008 at 12:47 PM
What exactly is a Filler Header?
Nov 17, 2008 at 5:09 PM
The filler header would be the space remaining, from the end of the headers to the end of the datagrid.
Coordinator
Nov 17, 2008 at 5:18 PM
You need to retemplate DataGridColumnHeadersPresenter. Current template is....

  <Style x:Key="{x:Type dg:DataGridColumnHeadersPresenter}" TargetType="{x:Type dg:DataGridColumnHeadersPresenter}">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type dg:DataGridColumnHeadersPresenter}">
            <Grid>
                <dg:DataGridColumnHeader IsHitTestVisible="False"/> <!-- This is the header which you need to customize -->
                <ItemsPresenter />
            </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>