eud-eud-for-devexpress-reports-reporting-for-web-report-designer-create-reports-cross-tab-reports.md
A cross-tab report displays complex multi-dimensional data, such as summary statistics, surveys, and market research information. This report uses a Cross Tab control that calculates automatic summaries and grand totals across grouped rows and columns.
Drop the Cross Tab control from the Toolbox onto the Detail band.
Invoke the designer menu and click Add Data Source….
Select the entire Cross Tab control. For this, click the designer surface outside the control and drag the mouse to the control until the entire control is selected.
Bind the Cross Tab control to the data source. In the Properties Panel expand the CROSS TAB TASKS section and specify the Data Source and Data Member properties.
In the Properties Panel , expand the DATA section and click plus in the ROW FIELDS section to add a Row Field. Select the field name from the drop-down list:
In the Properties Panel , expand the DATA section and click plus in the COLUMN FIELDS section to add a Column Field. Select the field from the drop-down list:
In the Properties Panel , expand the DATA section and click plus in the DATA FIELDS section to add a Data Field. Select the field from the drop-down list:
The resulting cross-tab control looks as follows:
Select the Cross Tab cell bound to the OrderDate field and click its smart tag. Set the GroupInterval property to DateQuarter to group data by quarters.
Switch to the Report Viewer to preview the result:
Format the currency data. Hold down CTRL, and select the following cells:
Select the cell bound to the OrderDate field:
Switch to the Report Viewer to observe the result:
Select the entire Cross Tab control, switch to the Properties window, and expand the STYLES section. Expand the GENERAL STYLE section and set the Border Color to 160, 160, 160. This value applies to all Cross Tab cells.
Expand sections for the HEADER AREA , DATA AREA and TOTAL AREA styles and adjust the appearance as your needs dictate.
Select the column bound to the FullName field and set the ColumnAutoWidthMode property to ShrinkAndGrow. The column width varies depending on the content.
Specify the Landscape page orientation and set the Vertical Content Splitting option to Smart to prevent content from being split across pages.
Switch to the Report Viewer. The resulting report is shown below: