Search code examples
material-uidatagrid

Exporting hidden columns in materialui datagrid


is there anyway to hide a column in a materialui datagrid but also include it in exports? (Print, excel etc)


Solution

  • I had this issue as well. If you want the column to be hidden in the table view but appear in the export, define it like this:

    {
        title: 'Column Title',
        field: 'field',
        hidden: true,
        export: true,
    },