Implement locking/unlocking of grid