Grid : Prevent one column from moving

Hi,



I want to prevent only two columns in the grid from moving. User should not be able to change their position,

while they all other columns should be movable.



How do I achieve this ?



I tried returning false from ‘onBeforeCMove’ after checking the col id, but that messes up

the grid. Data seem to move around, but header remains at position.



Thanks,

Nishan



Actually the usage of onBeforeCMove is a correct use-case and must not produce any side effects.
Working sample sent by email.

The alternative solution is use second parameter of enableColumnMove
mygrid.enableColumnMove(true,“false,false,true,true,true”)
which is optional list of true|false values , which allows or denies moving for related columns.