Are you doing this at submit time? If so, how can it be determined if a row is opened or closed?
In any case, to send the info back to the server you can:
Create multiple hidden inputs as I detailed in a previous reply. If they all have the same name, the values can be retrieved as an array."Cheat" and create a single hidden input that contains the list as a comma-separated string that you can parse at the server.
The latter involves less logic on the page, and more on the server. The former, just the opposite.