ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel Namespace / Grouping Class / Parent Property
Example

In This Topic
    Parent Property (Grouping)
    In This Topic
    Gets or sets an expression that identifies the parent group in a recursive hierarchy.
    Syntax
    'Declaration
     
    Public Property Parent As ExpressionInfo
    public ExpressionInfo Parent {get; set;}

    Property Value

    An GrapeCity.Enterprise.Data.Expressions.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.

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