Back to Devexpress

XlsExportOptionsEx.GroupState Property

corelibraries-devexpress-dot-xtraprinting-dot-xlsexportoptionsex-e0663832.md

latest3.3 KB
Original Source

XlsExportOptionsEx.GroupState Property

Gets or sets data groups’ expanded state in the exported document. Only available in data-aware export mode.

Namespace : DevExpress.XtraPrinting

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

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue(GroupState.Default)]
public GroupState GroupState { get; set; }
vb
<DefaultValue(GroupState.Default)>
Public Property GroupState As GroupState

Property Value

TypeDefaultDescription
GroupStateDefault

A value that specifies the expanded state of data groups in the output document.

|

Available values:

NameDescription
Default

Data groups are collapsed and expanded as they are in the source control.

| | ExpandAll |

Expand all data groups.

| | CollapseAll |

Collapse all data groups.

|

Remarks

Use the GroupState property to specify whether or not information from collapsed rows (Grid) or nodes (Tree List) should be printed in Data-Aware Export mode (set the XlsExportOptionsEx.ExportType property to DataAware to enable this mode).

ValueVersions 16.2 and olderVersions 17.1 and newer
ExpandAllPrint all contentPrint all content
DefaultExport only those groups (nodes) that are already expandedSpecified by a control

Control-level options mentioned in the table above include the following:

If updating your project to v17.1 or higher, you can choose to keep the previous behavior using the WindowsFormsSettings.DefaultSettingsCompatibilityMode option. See Version Compatibility: Default Property Values to learn more.

See Also

ExportType

ExpandAllGroups

PrintAllNodes

DefaultSettingsCompatibilityMode

Version Compatibility: Default Property Values

XlsExportOptionsEx Class

XlsExportOptionsEx Members

DevExpress.XtraPrinting Namespace