Activity Forums Salesforce® Discussions What is the difference between apex:pageblocktable and apex:repeat in Salesforce?

  • Radhakrishna

    Member
    April 13, 2017 at 5:03 am

    Hello Suraj,

    An HTML table that is defined by iterating over a set of data, displaying information about one item of data per row. The body of the < apex:dataTable > contains one or more column components that specify what information should be displayed for each item of data. The data set can include up to 1,000 items.

    apex:pageBlockTable – A list of data displayed as a table within either an < apex:pageBlock > or < apex:pageBlockSection > component, similar to a related list or list view in a standard Salesforce page. Like an < apex:dataTable >, an < apex:pageBlockTable > is defined by iterating over a set of data, displaying information about one item of data per row. The set of data can contain up to 1,000 items.The body of the < apex:pageBlockTable > contains one or more column components that specify what information should be displayed for each item of data, similar to a table. Unlike the < apex:dataTable > component, the default styling for < apex:pageBlockTable > matches standard Salesforce styles. Any additional styles specified with < apex:pageBlockTable > attributes are appended to the standard Salesforce styles.

    apex:repeat – This tag is used as for loop (for list) in apex. You can iterate a list.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos