Sounds more like an HTML/Javascript question. If you're already outputting the necessary HTML to display the table, and you simply want to hide it when the page is first loaded and show it when the user interacts with the page, then you'll want some client-side scripting (such as Javascript) that modifies the CSS properties of the table (such as changing it's 'display' or 'visibility' attribute).
EDIT: ... and if that's not what you're after, then you're going to have to explain a bit more about what it is you're trying to do.