Pagination Concept in Salesforce
This post describe How to implement concept of Pagination with custom controller. During the Pagination of your records you have to take care of these two things First is "How many records/rows you are going to display on the page" and second one is "On what condition First,Last,Pre and Next button will be clickable " Here you can find the logic of both. VF Page <apex:page controller="PaginitionMthd"> <apex:form > <apex:pageBlock title="Accounts"> <apex:pageBlockTable value="{!accList}" var="a" id="fresh"> <apex:column headerValue="Name"> <apex:outputText value="{!a.name}"/> </apex:column> ...