DataGrid v5 migration: columns are hidden despite hide: true

35 Views Asked by At

I'm migrating our app to v5 of MUI including datagrid tables. I have a weird problem where even though the columns array says hide: true for particular columns, it's still being shown. There's some dynamic bits with custom views for the table that depend on prop values, but this all worked in v4.

I even log the columns value and it shows hide: true, but as you can see in the screenshot, it's not hidden.

The full code is here https://github.com/stbenjam/sippy/blob/mui-v5/sippy-ng/src/tests/TestTable.js.

enter image description here

1

There are 1 best solutions below

1
On

Oh man, I accidentally installed data-grid v6 instead of v5 and hide is gone. I knew hide was deprecated in 5 but didn't plan to handle that yet.