Back to Devexpress

CrossTabLayoutOptions.DataFieldLayout Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-crosstab-dot-crosstablayoutoptions-ebe4c855.md

latest2.8 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[DefaultValue(DataFieldLayout.InRow)]
public virtual DataFieldLayout DataFieldLayout { get; set; }
vb
<DefaultValue(DataFieldLayout.InRow)>
Public Overridable Property DataFieldLayout As DataFieldLayout

Property Value

TypeDefaultDescription
DataFieldLayoutInRow

The data field layout.

|

Available values:

NameDescription
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 TypePath 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)

  • InColumn

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

See Also

CrossTabLayoutOptions Class

CrossTabLayoutOptions Members

DevExpress.XtraReports.UI.CrossTab Namespace