GroupBy Element (Query)

Applies to: SharePoint Foundation 2010

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>

Attributes

Attribute

Description

Collapse

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

Child Elements

FieldRef

Parent Elements

Expr1, Expr2, Query

Occurrences

Minimum: 0

Maximum: 1