Styling WPF Toolkit DataGrid Column Headers

Posted by ChrisFletcher on Stack Overflow See other posts from Stack Overflow or by ChrisFletcher
Published on 2010-05-18T11:06:39Z Indexed on 2010/05/18 11:10 UTC
Read the original article Hit count: 237

Filed under:
|
|
|
|

Hi, I'm having an issue styling the WPF Datagrid, I've styled the column headers (of type ColumnHeader).

But when the data in the columns does not fill the full width of the grid an additional column is added to pad out the grid. This column ignores the ColumnHeader style and looks out of place presumably because the element has a different type, I've looked through the library in object browser but I can't find this element. I've also considered fixing the sizes so this column is unnecessary but thats not a viable option.

The problem is demonstrated in the following article: http://blogs.msdn.com/jaimer/archive/2009/01/20/styling-microsoft-s-wpf-datagrid.aspx The element I mean is in the top right, just to the right of green column 3 and just above the cell with the row background arrow.

© Stack Overflow or respective owner

Related posts about wpftoolkit

Related posts about wpf