woensdag 19 januari 2011

Group by 'Content type' in SharePoint 2010

For some reason it seems that you cannot group by the 'Content type' field in SharePoint 2010 lists. This can be solved though by using SharePoint designer. It's not an ideal solution but at least it works.

Open the ASPX page of the view where you want to group by 'Content type'. In there, locate the 'View' XML tag and extend the 'Query' XML to something like this: