[question] CSV Format read instantly by Excel
Order ID 💳
#30058
Duplicates
- [X] I have searched the existing issues
Latest version
- [X] I have tested the latest version
Summary 💡
In some languages (e.g. German), the .csv format of Data Grid Pro cannot be opened with Excel by double-clicking on file.
The problem in depth 🔍
The .csv file is formatted with comma. In some languages, the .csv will only be recognized by Excel if it's formatted with a semicolon.
Is there a way you can help? Can this be connected to the localisation of the Data Grid maybe?
a
Context 🔦
For our user, it is just very complicated to reformat the file to be able to see it as a table in Excel. There are ways in Excel to do this but it's just not an acceptable way. The .csv export is very critical for us and our product and we had a lot of customers already complaining about this.
Your environment 🌎
`npx @mui/envinfo`
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
Hey @bjarnewilhelm You can change CSV export delimiter like this:
<DataGrid componentsProps={{ toolbar: { csvOptions: { delimiter: ';' } } }} />
Here's a demo: https://codesandbox.io/s/exportdefaulttoolbar-material-demo-forked-0xq2i?file=/demo.tsx