.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PivotItem.ShowDetails Property

Gets or sets a value indicating whether the outline is expanded for the pivot item.

Namespace: DevExpress.Spreadsheet

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


bool ShowDetails { get; set; }
Property ShowDetails As Boolean

Property Value

Type Description

true, to show details for the current item; otherwise, false.


The ShowDetails property is in effect only when the specified item belongs to an outer row or column field and can be used to expand or collapse the details for the item.

For example, the following code snippet demonstrates how to hide details for the first item ("Dairy Products") in the "Category" field.

pivotTable.Fields["Category"].Items[0].ShowDetails = false;

The image below shows the result of the code's execution.


Note that you can also hide the expand/collapse buttons in the report by using the PivotViewOptions.ShowDrillIndicators property.

See Also