Odd and even rows

Posted by: ejaskierski on 24 October 2019, 2:22 am EST

    • Post Options:
    • Link

    Posted 24 October 2019, 2:22 am EST

    How do I get odd and even rows to be the same color?

    https://www.grapecity.com/dataviewsjs/docs/dev-guide/layouts/grid-layout

    Can’t find anything in your docs.

  • Posted 27 October 2019, 11:41 pm EST

    Hi,

    We are working on this case and will get back to you soon.

    Regards

    Sharad

  • Posted 29 October 2019, 4:09 pm EST

    Hi,

    You could use the following CSS to apply same color on both odd and even row:

    .gc-grid.grid-layout .gc-row:not(.gc-focused):not(.gc-selected) .gc-cell {
      background-color: white;
    }
    

    You may also refer to the following sample demonstrating the same: https://codesandbox.io/s/dvjs-sample-jesds

    Regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels