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
sadham hussainsadham hussain 

Dynamically show / hide apex:column in pageblocktable.

Hi i am new to saleforce, 
I need to dynamically show / hide apex:column  in pageblocktable. I found a code which was working for datatable which uses column index to hide a column but not for pageblock table  because datacolumn index is not applicable in pageblocktable.
 
Narender Singh(Nads)Narender Singh(Nads)
Hi, 
In order to achieve the dynamic renderingg of apex:columns you have to make use of 'rendered' attribute in apex:column.

Refer to this blog: http://forceguru.blogspot.in/2012/11/page-block-table-with-dynamic-columns.html

If my answer helps you please mark it as the best answer so that others having same issue can benefit from this post.
Thanks.