Reset Columns to default

I have a table which enables a user to manually select and deselect columns.
I want a way to reset the columns to their default.
Is there a way to do that?
I found that hard and complex to do in pure logic.
Was this page helpful?