Back to Devexpress

PivotField.ShowAllItems() Method

officefileapi-devexpress-dot-spreadsheet-dot-pivotfield-d6e35a75.md

latest2.0 KB
Original Source

PivotField.ShowAllItems() Method

Displays all items in the PivotTable field.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
void ShowAllItems()
vb
Sub ShowAllItems

Remarks

Use this method to remove a filter applied to the PivotTable field and redisplay all the items in this field.

View Example

vb
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")

' Show the first item in the "Product" field.
pivotTable.Fields(1).ShowSingleItem(0)

'Show all items in the "Product" field (the default option).
'pivotTable.Fields[1].ShowAllItems();
csharp
Worksheet worksheet = workbook.Worksheets["Report4"];
workbook.Worksheets.ActiveWorksheet = worksheet;

// Access the pivot table by its name in the collection.
PivotTable pivotTable = worksheet.PivotTables["PivotTable1"];

// Show the first item in the "Product" field.
pivotTable.Fields[1].ShowSingleItem(0);

//Show all items in the "Product" field (the default option).
//pivotTable.Fields[1].ShowAllItems();

See Also

PivotField Interface

PivotField Members

DevExpress.Spreadsheet Namespace