xtrareports-devexpress-dot-xtrareports-dot-ui-dot-crosstab-dot-crosstablayoutoptions-ebe4c855.md
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
[DefaultValue(DataFieldLayout.InRow)]
public virtual DataFieldLayout DataFieldLayout { get; set; }
<DefaultValue(DataFieldLayout.InRow)>
Public Overridable Property DataFieldLayout As DataFieldLayout
| 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.
|
You can access this nested property as listed below:
| Object Type | Path to DataFieldLayout |
|---|---|
| XRCrossTab |
.LayoutOptions .DataFieldLayout
|
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