I'm trying to set an alternate color to my DataView control; I tried rowStyleClass and rowStyle but I can't get it to work.
rowStyleClass only gives me hover color for
What I'm doing is using a jQuery snippet:
$().ready(function() { // Apply alternate color row to DataView $(".lotusTable > tbody > tr:odd").addClass("odd"); $(".lotusTable > tbody > tr:not(.odd)").addClass("even"); });
This works, but, if partial refresh is executed (change page number; add rows, etc.) I lose the formatting.
Any ideas how can I accomplish this with DataView properties?