GridColumnState.hidden can't override GridColumnProps.hidden

0 Answers 5 Views
Grid
Jie
Top achievements
Rank 3
Iron
Iron
Iron
Jie asked on 03 Oct 2025, 09:24 PM | edited on 03 Oct 2025, 09:26 PM

Hi,

 

If GridColumnProps has { hidden: true} in it, then GridColumnState won't be able to override the `hidden` property anymore.

Please see this example:

https://codesandbox.io/p/sandbox/stoic-wildflower-wn4lzn?file=%2Fapp%2Fapp.tsx%3A11%2C10-11%2C25

Line 15, customerID column's hidden is set to true. Clicking the "Hide" button won't show/hide that column. But if change customerID's `hidden` value to `false`, or just remove that hidden property at line 15. The "Hide" button will work.

 

Thanks,

Jie

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Jie
Top achievements
Rank 3
Iron
Iron
Iron
Share this question
or