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

Can we use wrapper class object list in StandardSetController

Hello guys,


I am trying to prepare a combined list of custom objects. For that I have created a wrapper class.


I want to display records in that wrapper class object on VF page using all pagincation functions that StandardSetController provides.


As I am trying to call StandardSetController its gives error. The Code is:


standardSetRelatedNPOs = new ApexPages.StandardSetController(lstNPOSchoolWrapper);


The error:


Constructor not defined.


Shall I need to create Custom Set Controller or something else. If yes, then how? Please help.


Thanks in advance.

you cant use wrapper but offcourse you can add list<Sobject> to standardsetcontroller.
Subhani PSubhani P



I hope that the below link will help for solving your issue.



If this post is helpful please throw Kudos.If this post solves your  problem kindly mark it as solution.


Salesforce Certified Developer,