The sort can be overridden using the onSortCmd. The method attached to the onSortCmd receives the columnname and a boolean for ascending/descending as arguments.
I know that i receive the columname and sortorder, but i want to disable the sort option for a column,
so if the users clicks the headerlabel, the onSortCmd is not even called.
Okay, but the user stil gets the impression that a sort is done (the up/down arrow)
I can give him a message, but i would rather disable the option to sort specific columns (disable the label ??),
so the user sees that there is no sort done.
Why don’t you simply execute an application.beep() when the user tries to sort an unsortable column? The dear old beep is so disturbing that they will learn very quickly to not click on the sort arrow for that column…