Page type Grid : Show Deleted checkbox raises an error if Versioning is disabled

In my application, I disabled the versioning. In the page type grid, there is a checkbox “Show Deleted” that displays deleted records, but in my case, enabling this triggers the following error:

Failed to execute query : SELECT NoteDossier_.NoteDossierKey AS…

Is it possible to hide the “Show Deleted” checkbox when versioning is disabled?

Thank you!

Jean