Saving datagrid info and reloading it

How would I? I tried dataProvider saving to a var, but to no avail. :frowning: