Hi Neicy,
Once the table is inside a dynamic panel state, you can use the actions Show Panel and Hide Panel on the click on a button to dynamically show and hide the panel.
This article and video may help:
http://www.axure.com/p201_1.aspx