Duplicate the template grid so you have to versions, one editable and one non editable. Then you can set conditionial visibilty on that grid based on the value of the variable. Assumption is that those grids are in a dataview containing that variable.
Regards,
Ronald