You need to sign in to do that
Don't have an account?
knichols
dataTable conditionally display column header
Can you only show a column header if the rows have data in them? In the code below we don't want to display FOB if they can't view that column.
<apex:pageBlockTable value="{!priceListCanada}" var="p"> <apex:column > <apex:facet name="header"> <apex:outputText value="FOB" /> </apex:facet> <apex:outputText value="{!p.FOB__c}"/> </apex:column>
Try
You can do it in a controller extension in your visualforce page
and a property
Then an apex class
Fill in your own values for "YourObject__c" and "myPageController"