GroupBy element (Query)
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
Contains a Group By section for grouping the data returned through a query in a list view.
<GroupBy
Collapse = "TRUE" | "FALSE">
<FieldRef Name = "Field_Name"/>
</GroupBy>
Elements and attributes
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute | Description |
---|---|
Collapse |
Optional Boolean. TRUE for the Group By section in the list view to be collapsed by default. |
Child elements
Parent elements
Occurrences
- Minimum: 0
- Maximum: 1