xtrareports-devexpress-dot-xtrareports-dot-ui-dot-crosstab-dot-crosstablayoutoptions-1b2a5c8b.md
Specifies the position of the row totals.
Namespace : DevExpress.XtraReports.UI.CrossTab
Assembly : DevExpress.XtraReports.v25.2.dll
NuGet Package : DevExpress.Reporting.Core
[DefaultValue(TotalsPosition.AfterData)]
public virtual TotalsPosition RowTotalsPosition { get; set; }
<DefaultValue(TotalsPosition.AfterData)>
Public Overridable Property RowTotalsPosition As TotalsPosition
| Type | Default | Description |
|---|---|---|
| TotalsPosition | AfterData |
The row totals position.
|
Available values:
| Name | Description |
|---|---|
| AfterData |
Row/column totals are displayed after the row/column field values. Row/column grand totals are displayed in the last row/column.
| | BeforeData |
Row/column totals are displayed before the row/column field values. Row/column grand totals are displayed before data and row/column totals.
|
You can access this nested property as listed below:
| Object Type | Path to RowTotalsPosition |
|---|---|
| XRCrossTab |
.LayoutOptions .RowTotalsPosition
|
The XRCrossTab control calculates the following automatic totals:
Use the RowTotalsPosition property to move row totals and row grand totals. Use the ColumnTotalsPosition property to move column totals and column grand totals.
At design time, you can set the RowTotalsPosition property in the Cross Tab’s smart tag or in the Properties window’s LayoutOptions group.
This property provides the following values:
AfterData (Default)
BeforeData
If you want to hide row totals or row grand totals, select any cell in the row and disable the XRCrossTabCell.RowVisible property.
See Also