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
Heather_HansonHeather_Hanson 

apex:datatable visually split information based on field value

I'm using apex:datatable for my Visualforce page when rendered as PDF.

I want to visually separate the rows based on the value of a specific field.

The datatable provides the opportunitylineitems and I'm trying to organize the results using "render" on the columns, which seems to work, but I also want a break between certain rows.

Here is an image of what I'm TRYING to do:
User-added image

I have tried simply adding the <br/> between columns in the datatable, but that didn't work.

I have also tried creating multiple datatables and wrapping them in an output panel so that I could then add a <br/>, but the PDF generation failed when I tried that.

I also tried using apex:repeat to see if I could solve the problem with that tag, but couldn't figure it out.

Any help would be appreciated!