Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
415
Changing ColumnHeaderStyle based on data
posted

I have seen several posts where people asked how to style a ColumnHeader for XamPivotGrid. It seems simple enough to change the style for all headers and I can do that already. However,  I would like to be able to apply the style for just one header that corresponds to the current quarter. I was thinking I could do this with a DataTrigger in the style. I already tried applying a style when columns were added but couldn't figure out the right handler to make this happen.

To illustrate what I want is for the header of the column corresponding to the current quarter to be a different color. Nothing more, nothing less. For example, if Q4 2009 were the current quarter, then it would be colored red.

Parents Reply Children