Recently someone asked to provide a way to hide the option of navigating between views in a list.

This can be done by following the simple steps defined below:

1. Open the site in SharePoint Designer.
2. Navigate down to the list in question.
3. Check out the AllItems.aspx page which you want to modify and double-click on it.
4. Now in the list viewer WebPart right-click and select "Convert to XSLT dataview".



5. Now select the portion that shows the Views drop-down. It will be the SharePoint View Selector menu as shown.



6. Add the attribute visible="false" as shown.
7. Check in the page and you are good to go.

Hope this will help you out.