UserDesignerOptions.DefaultCrossTabControl Property
Specifies the default control used to present cross-tab data (XRCrossTab or XRPivotGrid).
Namespace: DevExpress.XtraReports.Configuration
Assembly: DevExpress.XtraReports.v24.2.dll
NuGet Package: DevExpress.Reporting.Core
#Declaration
public DefaultCrossTabControl DefaultCrossTabControl { get; set; }
#Property Value
Type | Description |
---|---|
Default |
The control to display cross-tab data. |
Available values:
Name | Description |
---|---|
XRCross |
The XRCross |
XRPivot |
The XRPivot |
#Property Paths
You can access this nested property as listed below:
Object Type | Path to Default |
---|---|
Reporting |
|
Settings |
|
#Remarks
The DefaultCrossTabControl option is in effect only for the Visual Studio Report Designer and WinForms End-User Report Designer.
In Visual Studio at design time, you can access this option in the Report Designer Options dialog.
To specify the default control to present cross-tab data in the WinForms End-User Report Designer, set the DefaultCrossTabControl option at the application’s startup.
static class Program {
static void Main() {
DevExpress.XtraReports.Configuration.Settings.Default.UserDesignerOptions.DefaultCrossTabControl =
DevExpress.XtraReports.UI.DefaultCrossTabControl.XRPivotGrid;
// ...
}
}
The table below describes how this option affects reports and the Report Designer’s tools.
Feature | Default | Default | |
---|---|---|---|
Support in Reports | You can use both XRCross | ||
Toolbox | The Toolbox contains the XRCross | The Toolbox contains the XRPivot | |
Cross-Tab Report Wizard | The Report Wizard contains the Cross-Tab Report option. | The Report Wizard does not support cross-tab reports. | |
Conversion | You can convert the XRPivot If the conversion result does not suit your requirements, you can restore the original XRPivot | You cannot convert XRCross |