The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
Row

PivotItem.ShowDetails Property

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

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.1.Core.dll

Declaration

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

Property Value

Type Description
Boolean

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

Property Value

Type Description
Boolean

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

Remarks

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.

PivotTable_CollapseItem

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

See Also