function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ganta gadbadganta gadbad 

i'm displaying a list of records as a table with three columns using <apex:pageblocktable> it works fine but i want to have the same table to be displayed using HTMl tags instead of <apex:pageblocktable>

Roy LuoRoy Luo
<table>
<tr>                
      <th>Header 1</th>
      <th>Header 2</th>
      <th>Header 3</th>
</tr>
<apex:repeat value="{!$itemDefinedInYourController}" var="c">
      <tr>  
         <td>{!c['col1Name']</td> 
         <td>{!c['col2Name']</td> 
         <td>{!c['col3Name']</td> 
     </tr>                 
</apex:repeat>
</table>

 
Sfdc CloudSfdc Cloud
Hi,
You can use <apex:repeat> component insted of <apex:pageblocktable>.<apex:repeat> allows you to output the contents of a collection according to a structure that you specify.Html tag will help you to create your table with customize look and feel and repeat component will helps you to itrate over collection.
<apex:page standardController="Account">

    <table border="0" >

        <tr>

            <th>Case Number</th><th>Origin</th>

            <th>Creator Email</th><th>Status</th>

        </tr>

        <apex:repeat var="cases" value="{!Account.Cases}">

        <tr>

            <td>{!cases.CaseNumber}</td>

            <td>{!cases.Origin}</td>

            <td>{!cases.Contact.email}</td>

            <td>{!cases.Status}</td>

        </tr>

        </apex:repeat> 

    </table>

</apex:page>
You can refer below link for reference
https://www.salesforce.com/us/developer/docs/pages/index_Left.htm#CSHID=pages_compref_repeat.htm|StartTopic=Content%2Fpages_compref_repeat.htm|SkinName=webhelp


if this answer helps,please mark it as best answer to help others:)
Thanks,