Styling DataGridColumnHeader

Aug 10, 2009 at 5:28 PM


is there any possiblity to style the DataGridColumnHeader element without losing functionality, because if i use a style with the targettype datagridcolumnheader and the style has a setter which set's the background i can't see the sortdirection icon any more.

Oct 15, 2009 at 11:26 PM
Edited Oct 15, 2009 at 11:27 PM

I'm having this exact same problem. Can anyone help?

Note: I posted about this on StackOverflow (

Oct 15, 2009 at 11:57 PM


Okay, so it turns out this is a bug in the framework (

If you follow that thread to the end, you'll come to this thread:

The last answer in that thread doesn't work, but the second-last one provides a legitimate working example.

Hope that helps!