1

I am using apex:dataTable in a VisualForce page in order to display two columns with three rows. The second column is a 'Comments'column.

So, the datatable is as such :

    <apex:dataTable value="{!Review__c}"  id="ventable" var="pitem" border="4" align="left" cellpadding="10" rowClasses="rowWithBorder"> 

                <apex:column headerValue="First Column">                                
                      <apex:outputLabel >ARow-FirstColumn  </apex:outputLabel><br></br>
                      <apex:outputLabel >BRow_FirstColumn   </apex:outputLabel><br></br>
                      <apex:outputLabel >CRow_FirstColumn   </apex:outputLabel><br></br>
                </apex:column>

                <apex:column headerValue="Comments Column">                                
                       <apex:outputLabel >ARow_CommentsColumn  </apex:outputLabel><br></br>
                       <apex:outputLabel >BRow_CommentsColumn   </apex:outputLabel><br></br>
                       <apex:outputLabel >CRow_CommentsColumn   </apex:outputLabel><br></br>
                </apex:column>
</apex:dataTable>

I would like for my Comments column's text to wrap - AND I would like for the first column's field to keep in line with Comments as it wraps. As it is now the First column's fields do not get pushed down as the Comments wrap around and take up multiple rows.

Is this possible ?

1

I just realized I can accomplish what I am attempting to do by using panelGrid and outputfield instead of dataTable.

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.