Issues with rendering apex caption when displaying dynamic data..

When you are displaying a grid of data using apex panel grids or apex data table components,Let us say we need to display a section heading on the first row and center it. You would use a facet component using apex header facet which would work good. But if you are using apex columns and dynamically rendering text based on condition, the header facet would display in one column instead of the entire row is annoying.

So to solve this problem , populate the columns attribute on your apex datatable or panelgrid so that apex knows the number of columns before hand. This would display the section header on the entire row.


Please subscribe

Subscribe to our mailing list and get tips to maximize salesforce to your email inbox.

I am honored to have your subscription. Stay tuned for tips to maximize your salesforce investment

Something went wrong.


Author: buyan47

Hi there! My name is Buyan Thyagarajan. I am a Salesforce consultant specializing in Higher Education, Manufacturing and Marketing Automation. My blogs will help you to maximize your Salesforce CRM investments, prevent problems beforehand and make the right decisions. If you need to talk to me right away, you can email me at or call me at 302-438-4097

Leave a Reply

Your email address will not be published. Required fields are marked *