I have come up with a simple method in which you can apply Alternate Row colors to your Dynamic Views. Here’s an image of my Dynamic View:
This can only be accomplished when using Custom SQL as the Data Source of your Dynamic View. Here’s the SQL that’s being used in this Dynamic View:
select *, (CASE WHEN ABS(TemplateID) % 2 = 1 THEN '#F6F6F6' ELSE '#E8E8E8' END) As TheRowColor from Module_Templates
** The Highlighted section is the column that’s responsible for Alternating Colors.
Now that you’re returning this column in your Dynamic View you can use this token in your Dynamic Views Item Template.
You’ll want to assign “[therowcolor]” to the TR of your table.
For instance here’s the HTML that I used for my Dynamic View:
View my Template HTML
Leave a comment if you have any questions or like the blog.