how to have different color rows in datatable

How do you make it so that on a datatable every other row alternates the background color. So say rows 1,3,5,7 .. and so on has a white background while rows 2,4,6,8... and so on ahs say a grey background (or whatever color other than the odd number rows)? It is just easier in the eyes if colors alternate.

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!