How to make WPF DataGrid Column Header transparent?

I used Snoop to take a look at what was happening. It seems that another DataGridColumnHeader is always created behind the one you can modify, and it's not affected by changes on styles. When you set a transparent background, in fact is being correctly applied, so what you see is that ghost header behind (which has the usual grey background) If you apply a coloured background and play with Opacity, you will see how the two colours are mixed.

I don't know if this can be solved.

I used Snoop to take a look at what was happening. It seems that another DataGridColumnHeader is always created behind the one you can modify, and it's not affected by changes on styles. When you set a transparent background, in fact is being correctly applied, so what you see is that ghost header behind (which has the usual grey background).

If you apply a coloured background and play with Opacity, you will see how the two colours are mixed. I don't know if this can be solved.

Hmmm, that is interesting. I can't use Snoop myself, for some reason it does not work with my application. – joerage Feb 3 '10 at 18:20 He,he, I must admit I didn't try your solution.

I wanted to solve it for individual Datagrids, which seems to be impossible. Glad to help! – Natxo Feb 4 '10 at 9:12.

With the answer from Natxo (thanks! ), I was able to find a solution. And it is a simple one too!

Knowing that there was another DataGridColumnHeader behind the one we can modify through the ColumnHeaderStyle, I just had to set a style that will affect all DataGridColumnHeader.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions