What is the difference between apex:dataTable and apex:pageBlockTable

What is the difference between apex:dataTable and apex:pageBlockTable

PageBlockTable:

1) PageBlockTable should be define inside pageblock or pageblocksection.
2) PageBlockTable uses standard styles sheets to design a visualpage.
3) It has the required attribute “value”.
4) Column headers will be displayed automatically.

DataTable:

1) No need to write inside pageblock or pageblocksection.
2) There is no required value.
3) The data can be displayed using custom style sheets.
4) we need to specify column headers explicitly.

Gopal Das
Follow me

Leave a Reply

Your email address will not be published. Required fields are marked *