It comes with a Javascript action: Export_To_Excel. You can create a nanoflow that calls this javascript action and then add a button to the datagrid2 that calls the nanoflow.
Unfortunately it does not export any custom content. Well it does, but it shows "n/a custom content" in the XLS file.