Does anyone know how to create a cross list XsltListViewWebPart in code?
I can create a XsltListViewWebPart for a single list no problem. But if I don't set the ListId property and set the DataSourceMode to SPDataSourceMode.CrossList I always get the error "Microsoft.SharePoint.WebPartPages.WebPartPageUserException : List View Web Part could not be added, list may be hidden.".
I can't find much documentation on it. Does anyone have an idea how to get this to work?
Thanks a lot,
View Complete Post