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 cannot find XLV web part. Is it included in SharePoint 2010 by default or should be activated/added manually? What web part category should it be placed in?

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

When you add a list through "Lists And Libraries" you actually add a XSLTListViewWebPart.
The same if you choose "Page Tools -> Insert -> Existing Lists".

It is by default scoped to current SPWeb, if you want to create a web part of it you should be able to manually create a .webpart-file that points to a specific list (even on a different SPWeb).

You can also make your own web part and aggregate it, like this:

var listViewWebPart = new Microsoft.SharePoint.WebPartPages.XsltListViewWebPart
    {
        ListId = myList.ID
    };
Controls.Add(listViewWebPart);
share|improve this answer
    
Many thanks! I've got another question. After i've added a list on the page (XLV wp) I can select View from list's views. But if I modify xslt for list's view it is not updated for web part view. Is it OK? –  Сергій Sep 4 '12 at 6:53
    
I've updated one column to be bold in the list's view. Then I opened a page added list (Page Tools -> Insert -> Existing Lists) then opened Web Part settings and selected customized view as 'Selected View'. After appying this change nothing happpened. The text in this column is not bold. –  Сергій Sep 4 '12 at 6:55
    
I've added another question for this sharepoint.stackexchange.com/questions/44884/… –  Сергій Sep 4 '12 at 7:02
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.