Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Salesforce by (11.9k points)

I want to display the apex: column header in 2 lines. I have a column with the header as "Distributed Total" I want to show in 2 lines

<apex:column headerValue="Distributed Total$">

  <apex:outputText value="${0, number, ###,##0.00}">

  <apex:param value="{!item.Dtotal}"/>

</apex:outputText>

</apex:column> 

Any idea how we can achieve this

Thanks

1 Answer

0 votes
by (32.1k points)
edited by

It seems like you want a column header which spans 2 lines. I believe this code will work for this:

<apex:column>

    <apex:facet name="header">

        Distributed<br/>Total$

    </apex:facet>

    <apex:outputText value="${0, number, ###,##0.00}">

        <apex:param value="{!item.Dtotal}"/>

    </apex:outputText>

</apex:column>

If you are preparing for the Salesforce admin certification exam, you can take up this Salesforce training by Intellipaat! 

Browse Categories

...