Skip to main content

GroupBand.Level Property

Gets or sets a value indicating how close this GroupBand object is nested to the DetailBand.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v23.2.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

[DefaultValue(0)]
[SRCategory(ReportStringId.CatBehavior)]
public int Level { get; set; }

Property Value

Type Default Description
Int32 0

An integer value indicating the relative position of the GroupBand objects in reference to the DetailBand object’s position in a report.

Remarks

Use the Level property to change the order of grouping levels in a report. This grouping order depends on the positional relationship of GroupBand objects and a DetailBand object. A value equal to 0 represents the closest position of the GroupBand to the DetailBand. The greater this value the further apart these bands are positioned from each other.

A pair of GroupHeaderBand and GroupFooterBand objects which have the same value for their Level properties belong to the same data group.

You can customize the level of a group header independently of the corresponding footer (and vice versa) using the Report Editor (invoked by clicking Edit and Reorder Bands… in the report’s smart tag).

report-editor-group-bands

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Level property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also