Disable filtering in Grid

Some time in the Form we can filter by our own value by Press Ctrl + G , but here some time we may receive the Range Value from Execute Query , SO user may neglect that value, in this situation we have to Disable the range for Particular field..

try this code in Execute Query;

this.query().dataSourceName('DataSourceName').addRange(fieldnum(DataSourceTableName, FieldName)).status(RangeStatus::Hidden);