Xceed Data Grid - ColumnHeaderStyle

Dec 21, 2012 at 10:41 AM


is it possible to edit the ColumnHeaderStyle Property of the Xceed DataGrid in the CommunityEdition?

I used the regular WPF DataGrid Control und there I can set the ColumnHeaderStyle Property, where I've a filter control, to use filtering within the DataGrid control.

ColumnHeaderStyle="{StaticResource {ComponentResourceKey TypeInTargetAssembly={x:Type Filter:DataGridHeaderFilterControl}, ResourceId=DataGridHeaderFilterControlStyle}}" 

Kind regards


Dec 21, 2012 at 12:51 PM

The "ColumnHeader" class is represented by the ColumnManagerCell class in the Xceed DataGrid.

Create an implicit style on this class:




<Style TargetType="{x:Type xcdg:ColumnManagerCell}">





Dec 21, 2012 at 12:55 PM

Thank you.

I'll try it.

Jan 2, 2013 at 10:52 AM
Edited Jan 2, 2013 at 10:53 AM

I've some problems regarding the style and the control template...

So, in my style for the ColumnManagerCell I've a setter for the Template-Property:

<Style x:Key="{ComponentResourceKey 
                   TypeInTargetAssembly={x:Type local:XceedGridHeaderFilterControl}, 
           TargetType="{x:Type xcdg:ColumnManagerCell}">
<Setter Property="Template">
        <ControlTemplate TargetType="{x:Type xcdg:ColumnManagerCell}">
           <local:XceedGridColumnFilter Margin="1" Grid.Column="0" Grid.Row="0"
                                        AssignedDataGridColumn ="{Binding RelativeSource={RelativeSource AncestorType={x:Type xcdg:ColumnManagerCell}}, 

In my code for the "FilterExtension" my "AssignedDataGridColumn" is always null. Is my binding wrong?

The "AssignedDataGridColumn" looks like that:


        public static readonly DependencyProperty AssignedDataGridColumnHeaderProperty =
            DependencyProperty.Register("AssignedDataGridColumnHeader", typeof(ColumnManagerCell), typeof(XceedGridColumnFilter));

        public ColumnBase AssignedDataGridColumn
                return (ColumnBase)GetValue(AssignedDataGridColumnProperty); 
                SetValue(AssignedDataGridColumnProperty, value); 


Maybe you can give me another hint.

Kind regards


Jan 9, 2013 at 2:02 PM


Now I've written my own control which is set as DataTemplate in the FixedHeader part of the DataGridControl. This will work for me.