+ Start a Discussion
SS KarthickSS Karthick 

Display values in two columns

Hi Folks,
          Can anyone tell me how to display the 10 values in two column?
my code:
       <apex:pageBlock title="My Contact">

        <apex:pageBlockTable value="{!account.Contacts}" var="item" columns="2">

            <apex:column value="{!item.name}"/>

        </apex:pageBlockTable>


The above code display in  one coumn


Please Help!
Best Answer chosen by SS Karthick
Phillip SouthernPhillip Southern
Hi Karthick, you can wrap multiple values and data in one column like this:
<apex:column headervalue="MYHeader">
     <apex:outputtext value="{!Item.name}"/>
     &nbsp;
     <apex:outputtext value="{!Item.Email}"/>
</apex:column>

All Answers

Phillip SouthernPhillip Southern
Hi Karthick, you can wrap multiple values and data in one column like this:
<apex:column headervalue="MYHeader">
     <apex:outputtext value="{!Item.name}"/>
     &nbsp;
     <apex:outputtext value="{!Item.Email}"/>
</apex:column>
This was selected as the best answer
praveen murugesanpraveen murugesan
Karthick,

Refer this pls.

https://developer.salesforce.com/forums/?id=906F0000000AgF5IAK

Thanks,

Praveen Murugesan