ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Pivot Table functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Collapses all row and/or column headers in a Pivot Table control.
Subscription-exclusive new feature
WEBDEV - Server codeLinux This function is now available for WEBDEV websites in Windows and Linux.
Note: This feature is only available in subscription-based versions, starting with WINDEV Suite 2025 - Update 4.
For more details, see Using new features exclusive to the subscription-based version of WINDEV Suite 2025.
Example
// Loads the data file
PVT_Statistics.Load(sFile)
// Collapses all headers of the Pivot Table control
PVT_Statistics.CollapseAll()
Syntax
<Pivot Table control>.CollapseAll([<Type of header>])
<Pivot Table control>: Control name
Name of the Pivot Table control to be used. This Pivot Table control must have been populated using <Pivot table>.CalculateAll or <Pivot Table>.Load.
<Type of header>: Optional Integer constant (or combination of constants)
Type of header to collapse:
pvtColumnHeaderCollapses the column headers.
pvtRowHeaderCollapses the row headers.

If this parameter is not specified, the row headers AND the column headers are collapsed.
Component: wd300obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/07/2025

Send a report | Local help