In some cases, you would not want your users to copy text from the grid. To set this up, you need to go to:
Go to the Tables section of your portal or shared view
Click on the table
View Type must be set to Grid for the Default View Settings or custom views in the Views section.
Go to the User Actions section
Disable the Copy text on grid toggle