Activity Forums Salesforce® Discussions What is the difference between “apex:dataTable” and “apex:pageBlockTable” components in Visualforce in Salesforce?

  • Piyush

    Member
    August 22, 2019 at 3:39 AM

    Hi Prachi,

    apex:pageBlockTable

    1) uses salesforce styling
    2) No need to specify the headers
    3) mandatory attribute “value”.

    apex:dataTable

    1) Need to specify the headers
    2) we can specify custom style classes.
    3) No mandatory attribute “value” unlike in pageblockTable

Log In to reply.