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
prabhutumprabhutum 

How do you dynamically change column headers in VF page

Hello,

 

I am a newbie to Visual Force. To meet a requirement I have to dynamically change the field header/labels of datatable based on certain values in the Controller.

 

Could someone please tell me how it can be done? Any code snippet or link to code sample would be appreciated!

 

Thanks!

Pr@sh...

prabhutumprabhutum

I figured it.

 

 

<apex:column value="{!c.ii_Prod_CaseCount0}" headerValue="{!is_product_header0}" rendered="{!ib_display_prod0}" />

 

silly me...