Back to Devexpress

MultiColumn.Layout Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-multicolumn-f3512209.md

latest4.0 KB
Original Source

MultiColumn.Layout Property

Specifies the layout direction for columns in a multi-column report.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[DefaultValue(ColumnLayout.DownThenAcross)]
public ColumnLayout Layout { get; set; }
vb
<DefaultValue(ColumnLayout.DownThenAcross)>
Public Property Layout As ColumnLayout

Property Value

TypeDefaultDescription
ColumnLayoutDownThenAcross

A ColumnLayout enumeration value.

|

Available values:

NameDescription
DownThenAcross

The Detail bands are printed vertically, then horizontally (in columns).

| | AcrossThenDown |

The Detail bands are printed horizontally, then vertically (in rows).

|

Remarks

Use this property to specify whether the Detail bands should be printed horizontally, then vertically (in rows), or vice versa - vertically, then horizontally (in columns).

When the Layout property is set to ColumnLayout.DownThenAcross, the Document.AutoFitToPagesWidth property is ignored.

To learn more, see Creating a Multi-Column Report.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Layout 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.

reporting-winforms-label-report-in-code/CS/Reporting_how-to-create-a-label-report-at-runtime-t473792/LabelReportRuntime/CustomLabelReportBuilder.cs#L64

csharp
detail.MultiColumn.ColumnSpacing = XRConvert.Convert(labelInfo.HPitch - labelInfo.LabelWidth, labelDpi, report.Dpi);
    detail.MultiColumn.Layout = ColumnLayout.AcrossThenDown;
}

reporting-winforms-label-report-in-code/VB/Reporting_how-to-create-a-label-report-at-runtime-t473792/LabelReportRuntime/CustomLabelReportBuilder.vb#L63

vb
detail.MultiColumn.ColumnSpacing = XRConvert.Convert(labelInfo.HPitch - labelInfo.LabelWidth, labelDpi, report.Dpi)
    detail.MultiColumn.Layout = ColumnLayout.AcrossThenDown
End If

See Also

MultiColumn

Create a Multi-Column Report in the Visual Studio Report Designer

MultiColumn Class

MultiColumn Members

DevExpress.XtraReports.UI Namespace