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

  • Suraj

    Member
    May 12, 2017 at 1:44 pm

    Hi Saurabh,

         PageBlockTable:

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

      DataTable:

    • No need to write inside pageblock 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