Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

VerticalDetailBand Class

A vertical band that displays recurring content from the report’s data source.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

public class VerticalDetailBand :
    VerticalBand,
    IDetailBand

#Remarks

If you use vertical bands to display data, the Vertical Detail band replaces the standard Detail band functionally. It becomes the main band and cannot be deleted. You can supplement it with the Vertical Header and Vertical Total bands.

VerticalBandDemoReport_WizardResult

The Create a Vertical Report in the Visual Studio Report Designer tutorial details how to use the Report Wizard to add the Vertical Detail band at design time. You can also use the report’s context menu to replace the standard Detail band with the Vertical Detail band in the Report Designer. Note that all the controls the standard Detail band contains are not added to the Vertical Detail band, they are removed.

VerticalBands_UseContextMenu

If the Vertical Detail band contains data-bound controls, this band is printed as many times as there are records in the data source. When the report’s DataMember property is not specified or is specified incorrectly, the Vertical Detail band displays the first data source record as many times as there are records in total. To specify how many times to print the Vertical Detail band with or without a data source assigned to the report, use the ReportPrintOptions class’ properties. You can also specify how to sort data displayed by the Vertical Detail band. For this, use the band’s SortFields property.

To specify how to arrange the Vertical Detail band’s content across several pages, use its BandLayout property.

#Implements

See Also