Pular para o conteĆŗdo

šŸŽ‰ v5 is out! Head to the documentation to get started.

GridExportCsvOptions Interface

The options to apply on the CSV export.


import { GridExportCsvOptions } from '@mui/x-data-grid-pro';
// or
import { GridExportCsvOptions } from '@mui/x-data-grid';


Name Type Default Description
allColumns? boolean false
If true, the hidden columns will also be exported.
delimiter? string ','
The character used to separate fields.
fields? string[] The columns exported in the CSV.
This should only be used if you want to restrict the columns exports.
fileName? string document.title
The string used as the file name.
utf8WithBom? boolean false
If true, the UTF-8 Byte Order Mark (BOM) prefixes the exported file.
This can allow Excel to automatically detect file encoding as UTF-8.