Show/Hide Totals

This sample demonstrates showing and hiding grand totals and subtotals in rows, columns, or both.

More Details...

Hide grand totals
Hide sub-totals

In this sample, you can hide grand totals in row, column, or both using radio buttons available under the Hide grand totals category. To hide grand totals in both row and column, set the property dataSource->showGrandTotals as false. To hide the row and column grand totals separately, set the property dataSource->showRowGrandTotals and dataSource->showColumnGrandTotalsas false. Also, in this sample, you can hide subtotals for specific fields too. It can be achieved by selecting appropriate fields from the drop-down available under the Hide sub-totals category. To hide subtotals for a specific field, set the showSubTotals property as false inside the field definition.