Skip to main content

CrossTabLayoutOptions.ColumnTotalsPosition Property

Specifies the position of the column totals.

Namespace: DevExpress.XtraReports.UI.CrossTab

Assembly: DevExpress.XtraReports.v23.2.dll

NuGet Package: DevExpress.Reporting.Core


public virtual TotalsPosition ColumnTotalsPosition { get; set; }

Property Value

Type Default Description
TotalsPosition AfterData

The column totals position.

Property Paths

You can access this nested property as listed below:

Object Type Path to ColumnTotalsPosition
.LayoutOptions .ColumnTotalsPosition


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)

    Column totals are displayed after the column field values. Column grand totals are displayed in the last column.

  • BeforeData

    Column totals are displayed before the column field values. Column grand totals are displayed before data and column totals.

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