The Allow Unsafe Code Blocks option is always set to false for the grid code, which allows the host application to be run with minimum security permissions.