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
sales4cesales4ce 

sorting pageblock table

Hi,

 

I have a VF page that displays results using a pagebloctable tag.

How can i sort the results based on the column header.

 

Can any one point me in the right direction.

 

Thanks,

Sales4ce

amritamrit

Hi,

 

Instead of using pageblock table you can use apex:repeat tag .Create a controller and create

 List<SObject>ob{get;set}

Get the fields which you want to display

Call the obj in VF page

 

Thanks