In this article I will take you through an Out-of-the-box, but not so popular feature of SharePoint.
A group view is formed by applying a column grouping as shown below:
You can see the original view was like this:
Please note that the Group View was based on column Company. The items with same company name were grouped together.
How to create Group View?
Please follow the steps below to create a Group View.
Step 1 Create List
For the test given below, create a new list of type Contact. After creation, enter some items into the list. Please ensure you set the Company column value too.
Step 2 Create View
Open the List tab & choose the Create View option.
In the appearing page, choose the Standard View as shown below.
Enter a name for the View as shown below.
Step 3 Set Grouping
In this step, we are going to select the Grouping column. Scroll down in the Create View page & expand the Group By section. Then, choose the Company column for grouping.
Save changes & now you are ready with your Group View.
Step 4 Test View
You will be seeing the new view displayed as shown below:
You can also change the view from List tab > View drop down list.
So this concludes our Group View creation. I hope you learned the simple technique.
How to delete the view?
You can modify/make default/delete the view from the Modify view option of List tab.
In this article we have explored an out-of-the-box feature for grouping list items.
I would like to admire the complexity behind coding this view in ASP.NET & the simplicity of SharePoint to make it happen quickly.