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? Mar 5, 2013 at 13:09

1 Answer 1


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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .