apex:pageBlockTable is used to display list of data 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.


<apex:page standardController=”Account” recordSetVar=”accounts” >

<apex:pageBlock >

<apex:pageBlockTable value=”{!accounts}” var=”a”>

<apex:column value=”{!a.name}”/>

<apex:column value=”{!a.Type}”/>

<apex:column value=”{!a.AccountNumber}”/>




apex:pageBlockTable attributes: align, bgcolor, border, captionClass, captionStyle, cellpadding, cellspacing, columnClasses, columns, columnsWidth, dir, first, footerClass, frame, headerClass, id, lang, onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onRowClick,onROwDblClick, onRowMouseDown, onRowMouseMove, onRowMouseOut, onRowMouseOver, onRowMouseUp, rendered, rowClasses, rows, rules, style, styleClass, summary.