This feature is a part of Classic Grid PRO. Click here to see all Classic Grid PRO features.
To disable the URL in Classic Grid, go to Catalog Settings > Catalog Design and find the Classic Grid PRO section:
When you check the Disable Product URL checkbox, the items will no longer link to the product pages.
This is useful if you want to display the grid without individual product pages.