I have created a Visualforce Email template, In the table, all record will show dynamically with respected grade value. Now I want to add all grade value. How Can I proceed with that?
<table>
<tr>
<th>Name</th>
<th>Grade</th>
</tr>
<apex:repeat var="cn" value="{!relatedTo.Contact}">
<tr>
<td>{!cn.Name}</td>
<td>{!cn.Grade__c}</td>
</tr>
<tr>
Total Grade :
</tr>
<td></td>
</apex:repeat>
</table>
</body>