# Settings

The **TotalsSettings** class in RadPivotGrid represents a group of settings for the row and column totals visibility	and position. In this help article you can find a description of the properties and a preview the result from using them in the	different RadPivotGrid layouts.

## GroupTotalsVisibility

The **GroupTotalsVisibility** property has four possible values: **ColumnsOnly, RowsOnly, RowsAndColumns** and **None.**

When this property is set to **RowsOnly**, only the row grand totals will be shown.

On the other hand, when it is set to **ColumnsOnly**, the row grand totals won’t be visible, but you will still have the column totals.

The default value is **RowAndColumns**, where both row and column grand totals are visible.

Setting the value to **None** will result in no grand totals being shown.
![GroupsTotalsVisibility Preview](https://www.telerik.com/products/aspnet-ajax/documentation/assets/fa8a0e5ccddb774a18d94afe64b8f4c4/pivotgrid-totals-settings_1.png)

## Totals Position

The TotalsSettings class exposes four properties for controlling the totals position:

* **RowsSubTotalsPosition**

* **RowGrandTotalsPosition**

* **ColumnsSubTotalsPosition**

* **ColumnGrandTotalsPosition**

They all receive a value from the TotalsPosition enumeration, one of: **First, Last** and **None**. \*	The default value for all four properties is **Last**.\*

### Cases and specifics

The position of the row sub total and grand total items into the RadPivotGrid control looks differently when the [RowTableLayout](https://www.telerik.com/products/aspnet-ajax/documentation/controls/pivotgrid/layouts/overview) is changed. The behavior is similar to Excel’s PivotTable.Here are the possible cases:

* **RowsSubTotalsPosition**

* \*\*RowsSubTotalsPosition ="First"\*\*In this case all subtotal items are rendered before the group. Also when the group is collapsed it contains the subtotal items values:

* *RowTableLayout="Tabular"* - NOT SUPORTED (similar to PivotTable in Excel).

* *RowTableLayout="Outline" - Expanded Group* - The group row contains all subtotal items' values.

  ![RowTableLayout="Outline" - Expanded Group](https://www.telerik.com/products/aspnet-ajax/documentation/assets/32a850c7aa1cb7a396788109dff6531b/pivotgrid-totals-settings_14.png)

* *RowTableLayout="Outline" - Collapsed Group* - The group row contains all subtotal item’s values.

  ![RowTableLayout="Outline" - Collapsed Group](https://www.telerik.com/products/aspnet-ajax/documentation/assets/bd5ca5f2906c985cc8dbe2729ce6f4ac/pivotgrid-totals-settings_15.png)

* *RowTableLayout="Compact" - Expanded Group* - The group row contains all subtotal item’s values.

  ![RowTableLayout="Compact" - Expanded Group](https://www.telerik.com/products/aspnet-ajax/documentation/assets/93a5514ca0bd56a4b0ded17e204b2dac/pivotgrid-totals-settings_16.png)

* *RowTableLayout="Compact" - Collapsed Group* - The group row contains all subtotal item’s values.

  ![RowTableLayout="Compact" - Collapsed Group](https://www.telerik.com/products/aspnet-ajax/documentation/assets/f5a66e4b3c389d60dabdd823ca61a837/pivotgrid-totals-settings_17.png)

* **RowsSubTotalsPosition ="Last"** In this case all subtotal items are rendered after the group. Also when the group is collapsed it contains the subtotal items values:

* *RowTableLayout="Tabular" – Expanded group*

  ![RowTableLayout="Tabular" – Expanded group](https://www.telerik.com/products/aspnet-ajax/documentation/assets/b9f498342f830408d77b9271c9aca85f/pivotgrid-totals-settings_8.png)

* *RowTableLayout="Tabular" – Collapsed group* - all cells from the row contain subtotal item values.

  ![RowTableLayout="Tabular" – Collapsed group](https://www.telerik.com/products/aspnet-ajax/documentation/assets/bbd4e4d4e91453c581c693014f87fdcf/pivotgrid-totals-settings_9.png)

* *RowTableLayout="Outline" – Expanded group*

  ![RowTableLayout="Outline" – Expanded group](https://www.telerik.com/products/aspnet-ajax/documentation/assets/79a35bd5fdddd4a3c6e9d5aa407f36da/pivotgrid-totals-settings_10.png)

* *RowTableLayout="Outline" – Collapsed group* - all cells from the row contain subtotal item values.

  ![RowTableLayout="Outline" – Collapsed group](https://www.telerik.com/products/aspnet-ajax/documentation/assets/0790c92bf6240e2f32592471aec7d8b3/pivotgrid-totals-settings_11.png)

* *RowTableLayout="Compact" – Expanded group*

  ![RowTableLayout="Compact" – Expanded group](https://www.telerik.com/products/aspnet-ajax/documentation/assets/73e2139c306d3443d7a7b552b0213096/pivotgrid-totals-settings_12.png)

* *RowTableLayout="Compact" – Collapsed group* - all cells from the row contain subtotal item values.

  ![RowTableLayout="Compact" – Collapsed group](https://www.telerik.com/products/aspnet-ajax/documentation/assets/d1db93efa22282c70342bb2c585a2ab0/pivotgrid-totals-settings_13.png)

* \*\*RowsSubTotalsPosition ="None"\*\*In this case all subtotal items are hidden and only the grand total items are visible as last items ofthe PivotGrid. Also when the group is collapsed it contains the subtotal items values:

* *RowTableLayout="Tabular" – Expanded group*

  ![RowTableLayout="Tabular" – Expanded group](https://www.telerik.com/products/aspnet-ajax/documentation/assets/d8d4b44f597329c9fae6c50986cde097/pivotgrid-totals-settings_2.png)

* *RowTableLayout="Tabular" – Collapsedgroup* - all cells from the rowcontain subtotal item values.

  ![RowTableLayout="Tabular" – Collapsed  group](https://www.telerik.com/products/aspnet-ajax/documentation/assets/4b7432e38d1768319aa89cb982b2090d/pivotgrid-totals-settings_3.png)

* *RowTableLayout="Outline" – Expandedgroup* - the cells from the firstrow are empty when the group is expanded.

  ![RowTableLayout="Outline" – Expanded  group](https://www.telerik.com/products/aspnet-ajax/documentation/assets/7204fc4ec40b962d6008d1972de4cd00/pivotgrid-totals-settings_4.png)

* *RowTableLayout="Outline" – Collapsedgroup* - all cells from the rowcontain subtotal item values.

  ![RowTableLayout="Outline" – Collapsed  group](https://www.telerik.com/products/aspnet-ajax/documentation/assets/05fd2206e68888314164449686385b0b/pivotgrid-totals-settings_5.png)

* *RowTableLayout="Compact" – Expandedgroup* - the cells from the firstrow are empty when the group is expanded.

  ![RowTableLayout="Compact" – Expanded  group](https://www.telerik.com/products/aspnet-ajax/documentation/assets/8b88c053d4a9499f2f1cd86edd723a81/pivotgrid-totals-settings_6.png)

* *RowTableLayout="Compact" – Collapsedgroup* - all cells from the rowcontain subtotal item values.

  ![RowTableLayout="Compact" – Collapsed  group](https://www.telerik.com/products/aspnet-ajax/documentation/assets/376be12f0f88b46305bd9e59e1d8ee0a/pivotgrid-totals-settings_7.png)

* **RowsGrandTotalsPosition**

* \*\*RowGrandTotalsPosition="First"\*\*In this case the grand total item is rendered as a first item:

* *RowTableLayout="Tabular"*

  ![RowTableLayout="Tabular"](https://www.telerik.com/products/aspnet-ajax/documentation/assets/c4a637a3e04c5976d6cecbfc0e5a3959/pivotgrid-totals-settings_24.png)

* *RowTableLayout="Outline"*

  ![RowTableLayout="Outline"](https://www.telerik.com/products/aspnet-ajax/documentation/assets/2ef6bf2d6e583116b3612377f5222cfc/pivotgrid-totals-settings_25.png)

* *RowTableLayout="Compact"*

  ![RowTableLayout="Compact"](https://www.telerik.com/products/aspnet-ajax/documentation/assets/ae32d1b26b3913a109d9179fbb747321/pivotgrid-totals-settings_26.png)

* \*\*RowGrandTotalsPosition="Last"\*\*In this case the grand total item is rendered as a last item:

* *RowTableLayout="Tabular"*

  ![RowTableLayout="Tabular"](https://www.telerik.com/products/aspnet-ajax/documentation/assets/a391e3d4d0a225ceaa7857b10cbcfe3f/pivotgrid-totals-settings_21.png)

* *RowTableLayout="Outline"*

  ![RowTableLayout="Outline"](https://www.telerik.com/products/aspnet-ajax/documentation/assets/d23c1347ae489af1db1a9bb766432355/pivotgrid-totals-settings_22.png)

* *RowTableLayout="Compact"*

  ![RowTableLayout="Compact"](https://www.telerik.com/products/aspnet-ajax/documentation/assets/16208d597f3ac9051e2585cc81f5d859/pivotgrid-totals-settings_23.png)

* \*\*RowGrandTotalsPosition="None"\*\*In this case the grand total item is not rendered.

* *RowTableLayout="Tabular"*

  ![RowTableLayout="Tabular”](https://www.telerik.com/products/aspnet-ajax/documentation/assets/f99951f33ea1dfe85e8edca553b6f15c/pivotgrid-totals-settings_18.png)

* *RowTableLayout="Outline"*

  ![RowTableLayout="Outline"](https://www.telerik.com/products/aspnet-ajax/documentation/assets/4ab0bd3da2faed7ad070b9b1c0f51474/pivotgrid-totals-settings_19.png)

* *RowTableLayout="Compact"*

  ![RowTableLayout="Compact"](https://www.telerik.com/products/aspnet-ajax/documentation/assets/ae700f619f24e76358085a40c1603099/pivotgrid-totals-settings_20.png)

* **ColumnsSubTotalsPosition**

* **ColumnsSubTotalsPosition="First" – NOT SUPPORTED (like in Excel’s PivotTable)**

* **ColumnsSubTotalsPosition="Last"**

* *Expanded group*In this case all columns’ subtotal items are rendered after the group.

  ![pivotgrid-totals-settings 29](https://www.telerik.com/products/aspnet-ajax/documentation/assets/c463d93b8cff5697a89f425b7a4941e6/pivotgrid-totals-settings_29.png)

* *Collapsed group*In this case all collapsed groups contains the subtotals values:

  ![ColumnsSubTotalsPosition="Last" – Collapsed group](https://www.telerik.com/products/aspnet-ajax/documentation/assets/916768d228a07c64e3d5a645ba6292b5/pivotgrid-totals-settings_28.png)

* \*\*ColumnsSubTotalsPosition="None"\*\*In this case all columns’ subtotal items are not rendered. Also when the group is collapsed it contains the subtotal items values:

  ![ColumnsSubTotalsPosition="None"  – Expanded group](https://www.telerik.com/products/aspnet-ajax/documentation/assets/f9f0f45630c911c813e92569aab8874c/pivotgrid-totals-settings_27.png)

* **ColumnsGrandTotalsPosition**

* \*\*ColumnGrandTotalsPosition="First"\*\*In this case the column’s grand totals items are rendered as first columns.

  ![ColumnGrandTotalsPosition="First"](https://www.telerik.com/products/aspnet-ajax/documentation/assets/485683f64282829f6a924029cc022e0d/pivotgrid-totals-settings_33.png)

* \*\*ColumnGrandTotalsPosition="Last"\*\*In this case the column’s grand totals items are rendered as last columns.

  ![ColumnGrandTotalsPosition="Last"](https://www.telerik.com/products/aspnet-ajax/documentation/assets/a2d41ad7a26e7868866763d9da6b1f1e/pivotgrid-totals-settings_32.png)

* \*\*ColumnGrandTotalsPosition="None"\*\*In this case the column’s grand totals items are not rendered.

  ![ColumnGrandTotalsPosition="None"](https://www.telerik.com/products/aspnet-ajax/documentation/assets/354d78cb918a72b2b1e3ffdb604b0c42/pivotgrid-totals-settings_31.png)
