easiest way to implement alternating row colors?
The easiest way would be straight CSS using the :nth-child pseudo-selector:

tr:nth-child(even) td { background: #ccc; }
tr:nth-child(odd) td { background: #aaa; }


The usual caveats apply (i.e. it doesn't work in Internet Explorer &lt;9)