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
40
How do I style the group record
posted

I have looked through the feature browser and all over this site and I have not been able to locate anything that explains how to style the rows after they have been placed in the groupheader.  Below is a screenshot of what I am trying to explain.  I am just trying to change the color of the default light blue. Is anyone able to point me in the correct direction?  Thank you!

Parents
No Data
Reply
  • 2677
    posted

    Hello Josh,

    The GroupByRecords are hardcoded to take the background color of the label presenters or field labels.  If you want to change the color of the Record Content area, you will have to bring the GroupByRecordPresenter style into the project.  This way you get all the template code because you will have to change a property in the template.  Inside of the GroupByRecordPresenter DefaultStyle Template, there is a border in with the name of highlight.  All you have to do is change the background of that to whatever color you want.  I have porvided a sample because you will need to add a converter and a style so the GroupByRecordPresenter style will work local in your project. 

    Hopefully, this will help you.  Please let me know if it does or if you have any other questions if this does not work.

    XamDataGrid_GroupByRowStyle.zip
Children
No Data