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

CrossTabLayoutOptions.DataFieldLayout Property

Specifies how to arrange two or more data fields in the Cross Tab layout.

Namespace: DevExpress.XtraReports.UI.CrossTab

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

[DefaultValue(DataFieldLayout.InRow)]
public virtual DataFieldLayout DataFieldLayout { get; set; }

#Property Value

Type Default Description
DataFieldLayout InRow

The data field layout.

Available values:

Name Description
InRow

Data field values are arranged in a row one after another. Data field headers are displayed as column headers.

InColumn

Data field values are arranged in a column one under another. Data field headers are displayed as row headers.

#Property Paths

You can access this nested property as listed below:

Object Type Path to DataFieldLayout
XRCrossTab
.LayoutOptions .DataFieldLayout

#Remarks

This property is in effect when the Cross Tab contains two or more data source fields (in the DataFields collection). In this case, the Cross Tab also displays data field headers to distinguish between data values.

At design time, you can set the DataFieldLayout property in the Cross Tab’s smart tag or in the Properties window’s LayoutOptions group.

This property provides the following values:

  • InRow (Default)

    Data field values are arranged in a row one after another. Data field headers are displayed as column headers.

  • InColumn

    Data field values are arranged in a column one under another. Data field headers are displayed as row headers.

If you want to hide data field headers, select the corresponding Cross Tab cell and disable the XRCrossTabCell.RowVisible/XRCrossTabCell.ColumnVisible property.

See Also