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. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to DataFieldLayout |
---|---|
XRCrossTab |
|
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.