function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
BabaganoushBabaganoush 

How to arrange my pageBlock row based layout to a dynamic table?

I have some data that I am displaying.
 
<apex:pageBlock title="Revenue Forecast (Row Based)">
        <apex:repeat value="{!MonthAndYearBreakdownByProjectStartAndEndDates}" var="r" id="theRepeat">
            <apex:pageBlockSection title="{! r }">
              <apex:form >
                 <input id="theTextInput" type="text" name="theTextInput" />
              </apex:form>
            </apex:pageBlockSection>
       </apex:repeat>
    </apex:pageBlock>

This results in: 

User-added image


However I would like to use a dynamic table so that I have dynamic columns with headers that say March 2019/April 2019/May 2019 etc and under each column have a textbox.
I tried doing the following but not going anywhere because I dont know how to proceed. Any pointers?
 
<apex:pageBlockTable value="{!objectforquery}" var="displaydata">
        <apex:repeat value="{!MonthAndYearBreakdownByProjectStartAndEndDates}" var="columnName">
        <apex:column value="{!displaydata[displayfieldname]}"/>
        </apex:repeat>
       </apex:pageBlockTable>

 
BabaganoushBabaganoush
I also forgot to mention that I would like the column widths to be fixed if possible. Many thanks for your help.