Making Columns Read Only by Column ID

re making a column read only below

You can define onEdit event and block edit operation for necessary column, it will work for all excells, including checkboxes


if (cind==CHECKBOX_COLUMN) return false;


I need to be able to do this by referring to the ColumnID rather then the Index -how do I, I have tried various way but with no luck, just think I am missing something in the syntax.


There is a getColumnId function which is reverse of getColIndexById and returns id by index
    if (this.getColumnId(cind)==COLUMN_ID) return false;

where COLUMN_ID - id of column in question