0
$\begingroup$

Here is the code I have tried:

Button["Click to show table", Grid[data]]

Is there a way to do this, so the user can click a button to show the data table?

$\endgroup$
2
  • 2
    $\begingroup$ just add Print: that is use Print@ Grid[data] $\endgroup$ – kglr Feb 3 at 18:38
  • 1
    $\begingroup$ There are several options depending on what you want. You could have an output cell Dynamic@griddata, and change your button to Button["Click to show table", griddata = Grid[data]]. You could call up a new window with each click with the code Button["Click to show table", CreateDocument@Grid[data]]. These approaches can be tweaked in ways depending on what is desired. $\endgroup$ – Michael E2 Feb 4 at 2:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.