disable showing/hiding columns

I am wondering if there is a way to get rid of the “Columns” options from the contextMenu for the grid headers. I still want the contextMenu, but without the “Columns” option.

So, is there a way to disable the UI for showing and hiding columns for the grid (like canSort, canGroupBy and such)?

I tried to overwrite the hideField function to disable the hiding of columns but the grid UI still shows the menu for hiding/showing columns.

Thanks.

The listGrid.canPickFields should give you the behavior you want

Thanks. That did the trick.