Hi Guys,
How do we have an extra darker border to demarkate if you have two 2 column fields ,or two row fields. We want to distinguish by having a darker border when the boundaries of the first column field end. So for example if you have City, Quarter as your two columns, you want a darker border when you City ends.
In addition can we have different color/font templates for the two different column fields, or row fields.
So, in other words if we have two columns (City, Quarter), how do we change the template PivotColumnHeaderCellControl to distinguish between these two levels. Is there a property in there we can use.
Cheers,
Anand
Hi Anand,
I am just checking if you had a chance to look into this and if you would like any further assistance on the matter.
Hello Anand,
I have created a sample project for you that illustrates how templates could be added for the columns in the grid. In the solution FlatDataSource is used with no hierarchies defined. The Hierarchy property in the template definition correspond to the name of the dimension that is added as a column. You may try to add Quarter to the columns section and noticed that different template will be used. I hope this will be helpful for you.
I am not talking about heirarchies here, I am talking about multiple columns in the same heirarchy, how do we change those, and they are dynamic columns. The only difference is that there are 2 of them in the same hierarchy. Like drag City and Quarter in your sample pivot grid.
Can we reset the Control template of for example PivotColumnHeaderCellControl? How can we do so?
Hello Anand and thank you for posting!
I have been looking into your post and if you would like to style the headers of the columns in XamPivotGrid you set XamPivotGrid.ColumnHeaderTemplate header template and apply it for the level and hierarchy that you would like. You can have a look at the Samples Browser for a sample that illustrates this by navigating to XamPivotGrid->Display->Custom header and Cell Templates and you can also have a look at the documentation for additional details on the hierarchy and level specifications: http://help.infragistics.com/Help/Doc/WPF/2014.2/CLR4.0/html/xamPivotGrid_Customizing_Cells_with_Templates_Procedure_and_Code_Example.html.In case you have any other questions or concerns, feel free to let me know.