To have a table that would shade each alternative row.
Solution:
In your css file or even in the visualforce page place in the following:
- In CSS:
- .odd {
background-color: #FCF7F7;
}
.even {
background-color: #E3DCDB;
} - Inside the VF Page:
<apex:page standardcontroller="Contact">
<apex:form id="reportform"> <!-- Start of ReportForm-->
<apex:dataTable value="{!queryResult}" var="r" id=" ttable" border="0" rowClasses="even,odd">
<!--yourcode here-->
</apex:dataTable>
</apex:form>
</apex:page>
Now you have each other row shaded gray/white.
Thanks
Check out my Other Salesforce.com Blogs
Salesforce Made Easy
Salesforce Data Migration Made Easy
eTechCareers.com Coming Soon
Thank you so much brother.
ReplyDelete