Back to Devexpress

CrossTabLayoutOptions.ColumnTotalsPosition Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-crosstab-dot-crosstablayoutoptions-c7b5010d.md

latest3.2 KB
Original Source

CrossTabLayoutOptions.ColumnTotalsPosition Property

Specifies the position of the column totals.

Namespace : DevExpress.XtraReports.UI.CrossTab

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[DefaultValue(TotalsPosition.AfterData)]
public virtual TotalsPosition ColumnTotalsPosition { get; set; }
vb
<DefaultValue(TotalsPosition.AfterData)>
Public Overridable Property ColumnTotalsPosition As TotalsPosition

Property Value

TypeDefaultDescription
TotalsPositionAfterData

The column totals position.

|

Available values:

NameDescription
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.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ColumnTotalsPosition
XRCrossTab

.LayoutOptions .ColumnTotalsPosition

|

Remarks

The XRCrossTab control calculates the following automatic totals:

  • Row/column totals - against outer row/column fields (the RowFields/ColumnFields collection).
  • Row/column grand totals - against all the rows/columns.

Use the ColumnTotalsPosition property to move column totals and column grand totals. Use the RowTotalsPosition property to move row totals and row grand totals.

At design time, you can set the ColumnTotalsPosition 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 column totals or column grand totals, select any cell in the column and disable the XRCrossTabCell.ColumnVisible property.

See Also

CrossTabLayoutOptions Class

CrossTabLayoutOptions Members

DevExpress.XtraReports.UI.CrossTab Namespace