Adding in cell locking for grid class