Grid Export: only selected rows

Is there a way to export Excel/Csv for only selected rows in a multiselection row type?
I was thinking of temporarily hide not-selected rows, i found a way to hide selected rows but i couldn’t find a way to hide not-selected rows.
Any idea?
Thank you!

There is no native solution to export only the selected data.
You may try to use the custom filter to filter all the selected rows before the export and unfilter your grid back after the export.

Thank you, i already followed this solution and it works.
Unfortunately there are bugs into Excel export, even if i set an header column as type: “string” when i export it transforms strings like “043542” into numbers, removing initial zero.
Do you know any workaround?

Unfortunately, currently there is no way to configure the cells/columns data type for the exported excel file.