You need to sign in to do that
Don't have an account?
sadham 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.
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.
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.