Page 1 of 1

Detect if a column is hidden

Posted: Thu Mar 24, 2022 11:43 am
by jwurst
I would like to make a toggle button that shows/hides a column. This would be a shortcut to the option to right click and drill in to show/hide columns. I can show/hide the column, but I can't figure out how to tell if the column is currently displayed. I can keep track of it if they only use my button, but if they use the right-click option then it gets out of sync. Any ideas?

Re: Detect if a column is hidden

Posted: Thu Mar 24, 2022 2:21 pm
by jwurst
Ah ha! There's a grid method isColumnHidden. Don't know how I missed it before. This is exactly what I needed.