Skip to main content
All docs
V24.1

GroupItemFluentBuilder.WithExpanded(Boolean) Method

Specifies whether a group is expanded or collapsed.

Namespace: DevExpress.XtraReports.Parameters

Assembly: DevExpress.Printing.v24.1.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