Dont think its possible to turn linked grids off that way…but you could turn off linked grids if you create a filter and use not contain and make sure your grids had another type name then your links grid…then you just turn categori grids off…hope it make sense
If the grids are on a workset within the link, an alternate option would be to close the workset of the grids in the linked model. This would globally turn off the grids in your host model. Genius Loci package has nodes to support closing worksets in linked files.