Hi all,
I’ve got a table view with a data source containing lots of data. To give a better overview to the user, I want to show/hide sets of columns (from a menu).
Any idea how to hide a full column?
I tried to set it’s width to 0, but that does not work (although it becomes very tiny, it gives an error and is still visible). In interface builder, the minimum width is 0.
Code is like this:
tell table view "thetableview" of scroll view "thescrollview" of window "main"
set width of table column 1 to 0
end tell
This is what I would like to have:
tell table view "thetableview" of scroll view "thescrollview" of window "main"
set visible of table column 1 to false
end tell
Changing the data source is not my favourite, because it takes a long time to get the data. But:
any suggestions are welcome,
John