In my datatable am not able to manage the table head properly. I want them in a Row enter image description here

but i want the as

Mon tue Wed thu fri Sun

My code

  <apex:pageBlock >
     <apex:pageBlockSection id="Event_view"  title="Event View" >

          <apex:repeat var="a" value="{!CevtWp}">
          <apex:datatable value="{!a.evLst_W}" columns="3" var="d" Width="700px">
              <apex:column width="300px" >
                  <apex:facet name="header">Time</apex:facet>
                  <apex:outputText value="{!a.startDate_W}"/>

              <apex:column width="300px" >
                  <apex:outputText value="{!a.subject_W}"/>


  • Could you post your controller code for CevtWp? – Sergej Utko Mar 5 '13 at 13:09

You have to specify the number of columns to the pageBlockSection tag. By default it takes the value as 2.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.