GridCsvExportOptions API
The options to apply on the CSV export.
Demos
Import
import { GridCsvExportOptions } from '@mui/x-data-grid-premium'
// or
import { GridCsvExportOptions } from '@mui/x-data-grid-pro'
// or
import { GridCsvExportOptions } from '@mui/x-data-grid'
The columns exported.
This should only be used if you want to restrict the columns exports.
Type:string[]
Function that returns the list of row ids to export on the order they should be exported.
Type:(params: GridCsvGetRowsToExportParams) => GridRowId[]
If true
, the CSV will include the column groups.
Type:boolean
Default:true
If true
, the CSV will include the column headers and column groups.
Use includeColumnGroupsHeaders
to control whether the column groups are included.
Type:boolean
Default:true