I already tried several ways to try this rendered in my code, but the header still show up, and the value is already like the criteria.how to make the header is show/not showing based on the criteria. this is my code:
<apex:pageBlockTable value="{!arrRateMap[Key]}" var="r" id="ratecardtable">
<apex:column title="{!r.Notes}">
<apex:inputCheckbox id="productFlag" value="{!r.isSelected}" rendered="{!r.isDisabled = false}" onchange="updateRatecardFlag({!famCol})"></apex:inputCheckbox>
</apex:column>
<apex:column value="{!r.P.Name}"/>
<apex:column value="{!r.R.Brand__c}"/>
<apex:column value="{!r.R.Description__c}"/>
<apex:column value="{!r.P.Family}"/>
<apex:column rendered="{!CONTAINS(r.P.Family, 'FX')}">
<apex:facet name="header">
<apex:outputText value="Xendit Rate BPS"/>
</apex:facet>
<apex:outputText value="{!r.R.Xendit_Rate_BPS__c}"/>
</apex:column>
<apex:column rendered="{!NOT(CONTAINS(r.P.Family, 'FX'))}">
<apex:facet name="header">Rate Per Txn</apex:facet>
<apex:outputText value="{!r.R.Rate_Per_Txn__c}"/>
</apex:column>
<apex:column rendered="{!NOT(CONTAINS(r.P.Family, 'FX'))}">
<apex:facet name="header">Rate Per TPV</apex:facet>
<apex:outputText value="{!r.R.Rate_Per_TPV__c}"/>
</apex:column>
</apex:pageBlockTable>
the Xendit BPS should not showing up.