SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am filtering a list by passing query string to a custom list

http://TestSite/TestSubsite/Lists/TestList/allitems.aspx?FilterField1=FirstName &FilterValue1=Apelles

This does the job of filtering the list, but once its done i want the filtering options on the column header either to be locked or unclickable so that nobody filter it further below is the screen shot of one column enter image description here

share|improve this question
Since the filter parameters will be on the URL, they can change them anyway. Does disabling the filtering options on the columns make sense? If so, do you want to disable all columns or just the one you are filtering on currently? – Marc D Anderson Feb 12 '12 at 0:01
Hi Marc, i want to disable only the column that i am currenlty filtering – spStacker Feb 12 '12 at 2:46
up vote 1 down vote accepted

You can add some script to the page to alter or disable the behavior on the Contact Name column header. If you write the function generically, you could apply it to multiple columns.

share|improve this answer

You can do it using SharePoint designer. Open the page where u have added the list view web part. Then find the column for which you want to disable the filter inside XSLT WP. Add a "filterable" attribute.

<FieldRef Name="Contact Name" Filterable="False" />

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.