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.

  Collapse = "TRUE" | "FALSE">
  <FieldRef Name = "Field_Name"/>

Elements and attributes

The following sections describe attributes, child elements, and parent elements.


Attribute Description
Optional Boolean. TRUE for the Group By section in the list view to be collapsed by default.

Child elements

Parent elements


  • Minimum: 0
  • Maximum: 1