Group By Content-Type in SharePoint list view

In this hint, I’ll show How to Group By ‘Content-Type’ field in SharePoint list view?Group By 'Content-Type' field in SharePoint listScenario:

I have a SharePoint list with two Content Type eg: Item and Announcement,

Group By 'Content Type' in SharePoint list

I need to display the view grouped by the Content-Type field as shown below:

Group By 'Content-Type' field in SharePoint list

I tried to modify the view.

Modify ViewBut unfortunately, There is no field called Content Type in Group By section as shown below.Group By in list viewSolution:

  • Modify your view > In the group by section, > select any field like Title.
  • Open SharePoint Designer > From the left menue > Select List & Library > Click on your List .

Group By 'Content-Type' field in SharePoint list

  • In View Section, Click on your view to edit it.

Group By 'Content-Type' field in SharePoint list

  • Search for a <View>.

View section in SharePoint Designer

  • Scroll horizontally till get the <GroupBy> tag as shown below.

Group By 'Content-Type' field in SharePoint list

  • In <FieldRef> tag, Change the Name of from Title to ContentType.

Group By 'Content-Type' field in SharePoint list

<GroupBy Collapse=”TRUE” GroupLimit=”30″><FieldRef Name=”ContentType”/></GroupBy>

  • Save.
  • Open your view, It should be now grouped by Content type.

Group By 'Content-Type' field in SharePoint listEnjoy 🙂

Advertisements

One thought on “Group By Content-Type in SharePoint list view

  1. This is great thanks 🙂

    One issue I have is on load it groups it by content type ID rather then content type in O365.

    If you click the content type then go back to the list it groups by content type.

    Anyone else having this issue?

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s