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

I have a listview webpart that used specific columns.

Changing the names of the columns is not an option.

Our users are insisting that the heading for these columns be updated, so I am thinking of using XSLT to achieve this. I believe it is possible using the XSL Link field of the webpart.

So, as an example, I have Column 1 | Column 2 | Column 3

and it must display as

Column A | Column B | Column CC

Does anyone have an example on how to do this?

share|improve this question
    
Mahendran, usually when this situation occurs I make Calculated Fields for the columns with simple formula =[Field] and give column names as I want! and use calculated columns in XSLT... I know its not a healthy solution, but that's the only work around I have found... :) –  Arsalan Adam Khatri Oct 21 '12 at 10:57

1 Answer 1

up vote 3 down vote accepted

Having read up on the interwebs, I came across this (awesome) post:

Overriding the presentation of an xslt listview webpart

which basically covers how to do what I was trying to achieve.

The steps I took to get this right are as follows:

  1. Open up the page in SharePoint Designer and grab the xslt of the listview
  2. Save xslt into a .xsl file
  3. Update the file as you wish
  4. Upload the file to the layouts folder (this is important, read here for a full breakdown of why it Must be in this folder)
  5. Edit the xsl link field of the xslt listview, to point to your custom xsl file

Done :)

share|improve this answer

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.