[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.PageReportModel.Grouping.Parent

Parent Property

Parent

Gets or sets an expression that identifies the parent group in a recursive hierarchy.

Declaration
public ExpressionInfo Parent { get; set; }
Property Value
Type Description
ExpressionInfo

An ExpressionInfo object containing the parent group in a recursive hierarchy.

Remarks

This property only applies if the group has exactly one group expression

Indicates the following:

  1. Groups are sorted according to the recursive hierarchy (sort is still used to sort peer groups).
  2. Labels (in the document map) are indented according to the recursive hierarchy.
  3. Intra-group show/hide toggles items according to the recursive hierarchy (see ToggleItem).

If filters on the group eliminate the parent of a group instance, it is instead treated as a child of the parent's parent.

Examples
Grouping group = new Grouping();
group.Parent = ExpressionInfo.FromString("=Fields!ParentCategory.Value");