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
975
XamDataGrid highlight every other row
posted

Using xamDataGrid, in vertical orientation each record is contained in a single "row".  Therefore when I highlight alternate records it highlights every other row.  If I switch to horizontal orientation each record is now in a single column, therefore every other column is now highlighted.  Is there a simple way to change to horizontal orientation and have every other row be highlighted? 

-Chris

  • 138253
    Verified Answer
    Offline posted

    Hello Chris,

     

    Thank you for your post. I have been looking through it and I created a sample project for you with the functionality you want. Basically I created a Style for the CellValuePresenter and set its background depending on the Field which it belongs to. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

    WpfApplication1.zip