Hello Amishee,
Please check below.
Excel Exporter | Mendix Documentation
you can you Excel exporter module or CSV module.
Mendix Marketplace - Excel Exporter
Also in datagrid if you are using xpath then you will be able to see export button.