Skip to main content
A newer version of this page is available. .
All docs
V21.2

GroupItemFluentBuilder.WithExpanded(Boolean) Method

Specifies whether a group is expanded or collapsed.

Namespace: DevExpress.XtraReports.Parameters

Assembly: DevExpress.Printing.v21.2.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

public GroupItemFluentBuilder WithExpanded(
    bool expanded
)

Parameters

Name Type Description
expanded Boolean

true, to expand the group; otherwise, false.

Returns

Type Description
GroupItemFluentBuilder

A group builder, so you can chain additional methods that customize the group.

Example

using DevExpress.XtraReports.Parameters;
// ...
ParameterPanelFluentBuilder.Begin(report)
    .AddGroupItem(g => g
        .AddParameterItem(report.Parameters[0])
        .AddParameterItem(report.Parameters[1])
        .WithTitle("Select a customer")
        .WithShowExpandButton(true)
        .WithExpanded(false))
.End();
expanded = true (Default) expanded = false
expanded = true (Default) expanded = false
See Also