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

  • Nikita

    Member
    August 27, 2019 at 12:48 pm

    Hi Prachi,

    difference between “apex:dataTable” and “apex:pageBlockTable” is as following

    PageBlockTable:

    • PageBlockTable should be defined inside pageblock or pageblocksection.
    • PageBlockTable uses standard styles sheets to design a visual page.
    • It has the required attribute "value".
    • Column headers will be displayed automatically.

    DataTable:

    • No need to write inside page block or pageblocksection.
    • There is no required value.
    • The data can be displayed using custom style sheets.
    • we need to specify column headers explicitly.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos