How to remove zebra striping from ng-grid

Seems like this should be an easy thing to do, but I’m not finding it. An ng-grid is zebra striped by default, how do I remove it?

Answer

Add this to your style to override the zebra css:

<style>
    .ngRow.even {
        background-color: rgb(255, 255, 255);
    }
    .ngRow.odd {
        background-color: rgb(255, 255, 255);
    }
</style>

This will make both rows white. Change it to whatever color you need.

Leave a Reply

Your email address will not be published. Required fields are marked *