You need to sign in to do that
Don't have an account?

How do I display Column Names in a pageBlockTable that has rendered column values?
Hello!
I have created a pageBlockTable, but my column names disappear when I apply the "rendered" tag. Is there a way that I can statically set the column names so that my table has headers?
Thanks!
John
I have created a pageBlockTable, but my column names disappear when I apply the "rendered" tag. Is there a way that I can statically set the column names so that my table has headers?
<apex:pageBlock title="Underfunded Buyers"> <apex:pageBlockTable value="{!listOfBuyer}" var="by"> <apex:column value="{!by.Name}" rendered="{! by.Funding_Status__c = 'Funds Needed'}"/> <apex:column value="{!by.Spend_Last_Week__c}" rendered="{! by.Funding_Status__c = 'Funds Needed'}"/> <apex:column value="{!by.Total_Spend_this_Week__c}" rendered="{! by.Funding_Status__c = 'Funds Needed'}"/> <apex:column value="{!by.Forecasted_Spend__c}" rendered="{! by.Funding_Status__c = 'Funds Needed'}"/> <apex:column value="{!by.Current_Balance__c}" rendered="{! by.Funding_Status__c = 'Funds Needed'}"/> </apex:pageBlockTable> </apex:pageBlock>
Thanks!
John
Try using <apex: column header value> to display header name.
<apex:column headerValue="Name" value="{!by.Name}" rendered=.....