I need to create what would essentially be a 15 column / 5 row table in a VisualForce page with individual fields and labels in the cells. Some of the rows would be headers, and some of the columns would be field labels. The individual fields within the cells would be input fields.
What is the best way to approach this ? I'm looking into block tables (?) but most of the online documentation I'm finding is regarding tables which are being populated with lists produced by queries. I don't want lists. I only want fields to be in each of the cells, just like a spreadsheet.
Thank you for any input.
The table I am attempting to create would be this type of format (I am attempting to show individual cells below. The "|"represents the end of a column.
firstheader | secondheader
field label1 | field1__c | sidelabelA | fieldA__c |
field label2 | field2__c | field labelB | fieldB__c |
field label3 | field3__c | field labelC | fieldC__c |
Here's what the VF would look like :
<apex:dataTable value="{!object__c}" var="pitem" rowClasses="odd,even">
<apex:column headerValue="">
<apex:outputLabel>Row1 Label : </apex:outputLabel>
</apex:column>
<apex:column headerValue="P">
<apex:outputfield value="{!pitem.Probability__c}"/>
</apex:column>
<apex:column headerValue="S">
<apex:outputfield value="{!pitem.Severity__c}"/>
</apex:column>
<apex:column headerValue="C">
<apex:outputfield value="{!pitem.Control__c}"/>
</apex:column>