Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is it possible to hide the header row, displaying column headers, for a specific view on a SharePoint 2010 publishing page? We've used this CSS to hide the column headings, but this is all or nothing; in other words, we can't hide and show the column header for an individual view:

tr.ms-viewheadertr{
  display:none;
}

In addition, setting a TR's display to none has other issues: IE7 can't handle display:table-row when you need to show the column again; you have to use display:inline-block for that one browser and the table-row for modern browsers. Plus, this technique affects all of the views on the page rather than the specific one we need to handle.

Anyone know of a way to hide/show the column headings from the web part editor or some cleaner solution? Thanks.

share|improve this question
    
Possible solution using jQuery and CEWP: $("table[summary*='List name']").each(function(){ $(this).find("tr:eq(0)").show(); });, from here: code-journey.com/2011/… –  Alex C Oct 19 '11 at 9:00
add comment

1 Answer

up vote 2 down vote accepted

Treat the views as DVWP, since they are XSLT List Views (XLV) then you can go in and edit them in SharePoint designer and remove the header for a specific column.

share|improve this answer
add comment

Your Answer

 
discard

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.