Material-UI DataGrid column names getting truncated

Viewed 1016

My column names keep getting truncated, but they should fit in the space.

enter image description here

1 Answers

Use text-overflow: clip to remove the ellipsis if you don't want it:

const useStyles = makeStyles({
  root: {
    "& .MuiDataGrid-cell, & .MuiDataGrid-columnHeaderTitle": {
      textOverflow: "clip"
    }
  }
});
<DataGrid className={classes.root}

Codesandbox Demo

Related