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
Melissa Driscoll 14Melissa Driscoll 14 

help with rows versus columns

I need the following to be in rows and not columns
<apex:page standardcontroller="Account">
<apex:pageBlock >
<apex:pageBlockSection title="Handoff">
<apex:pageBlockTable value="{!Account.Handoffs__r}" var="h"> <apex:Column value="{!h.Name}"/>
<apex:column value="{!h.Account__c}"/>
<apex:column value="{!h.Opportunity__c}"/>
<apex:column value="{!h.Point_of_Contact__c}"/>
<apex:column value="{!h.Training__c}"/>
<apex:column value="{!h.Training_Notes__c}"/>
<apex:column value="{!h.Data_Migration__c}"/>
<apex:column value="{!h.Data_Migration_Notes__c}"/>
<apex:column value="{!h.Integration__c}"/>
<apex:column value="{!h.Integration_Notes__c}"/> </apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
Jack scarJack scar
I'm a newbie here. I also want to know more about it. Thanks for your updates. 
MagulanDuraipandianMagulanDuraipandian
Page Block Table, Data Table, Data List and Apex Repeat can be used to render list in Visualforce page. 
Check this for sample code: https://www.infallibletechie.com/2022/02/how-to-iterator-list-in-salesforce.html
Melissa Driscoll 14Melissa Driscoll 14

Thank you!!!  This worked:

But now how to I bold the text fields?

<apex:page standardcontroller="Account">
<apex:pageBlock > <apex:dataList value="{!Account.Handoffs__r}" var="h"><BR>
Name: {!h.Name} <BR><BR>
Account: {!h.Account__r} <BR><BR>
Opportunity: {!h.Opportunity__c} <BR><BR>
Point of Contact: {!h.Point_of_Contact__c} <BR><BR>
Training {!h.Training__c} <BR><BR>
Training Notes:{!h.Training_Notes__c}<BR><BR>
Data Migration: {!h.Data_Migration__c} <BR><BR>
Data Migration Notes:{!h.Data_Migration_Notes__c} <BR><BR>
Integration: {!h.Integration__c} <BR><BR>
Integration Notes: {!h.Integration_Notes__c}
</BR> </BR></BR> </BR></BR> </BR></BR> </BR></BR> </BR></BR> </BR></BR> </BR></BR> </BR></BR> </BR></BR>
</apex:dataList>
</apex:pageBlock>
</apex:page>