true, to merge cells containing the outer row and column field items, subtotal and grand total labels; otherwise, false.
The example below demonstrates how to use the MergeTitles property to merge cells containing item labels for the outer row and column fields, subtotal and grand total labels. By default, cells with the outer field items have a left-justify alignment and are displayed at the top of the item group.
A complete sample project is available at https://github.com/DevExpress-Examples/winforms-spreadsheet-pivot-table-api-t298650
Dim worksheet As Worksheet = workbook.Worksheets("Report4") workbook.Worksheets.ActiveWorksheet = worksheet ' Access the pivot table by its name in the collection. Dim pivotTable As PivotTable = worksheet.PivotTables("PivotTable1") ' Display the pivot table in the tabular form. pivotTable.Layout.SetReportLayout(PivotReportLayout.Tabular) ' Merge and center cells with labels. pivotTable.Layout.MergeTitles = True
The following image illustrates the result of code execution. Item labels for the outer row field, grand total and subtotal captions are centered within the merged cells. Note that the MergeTitles property is in effect for the outer row items only when a pivot table is shown in tabular form.