You need to sign in to do that
Don't have an account?
V Anand
How to display fields in row wise in visualforce?
Hi.............
In visual force we are displaying field names in column wise ... but I want to display in row wise ,how can I do that........
You can create row wise structure by below two options-
<table cellspacing="0" cellpadding="0" border="0px">
<apex:repeat value="{!listOfObject}" var="lst">
<tr>
<td>{!lst.FieldName}</td>
<td>{!lst.FieldValue}</td>
</tr>
</apex:repeat>
</table>
or something like below
<apex:repeat value="{!listOfObject}" var="lst">
<apex:pageBlockSection columns="1" >
<apex:pageBlockSectionItem >
<apex:outputLabel value="{!lst.FieldName}" />
<apex:outputLabel value="{!lst.FieldValue}" />
</apex:pageBlockSectionItem>
<apex:pageBlockSection>
</apex:repeat>