+ 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