How to retain selected rows in Multi-Record Form when paging

How do I retain the rows I have selected on say page1 in a Mult-Record Form, when I page through to the next page.
I need to select multiple records from multiple pages, and then when all are selected click on Save.

Problem is I lose all selected records as soon as I page forward or backwards.

I might have a solution for you what are you trying to do with the selected records after ?

Thanks, please can you share

i use forms with editable grid, then create a checkbox, then use this in ajax events for that field [values] [] = {id};