Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

CollapseAll – PB Docs 2017 – PowerBuilder Library

CollapseAll – PB Docs 2017

CollapseAll

method (DataWindows)

Description

Collapses all groups in a TreeView DataWindow. 

Applies to

DataWindow type

Method applies to

PowerBuilder

DataWindow control

Syntax

PowerBuilder

Argument

Description

dw_control

A reference to a TreeView-style DataWindow
control

Return value

Returns 1 if the CollapseAll operation succeeds and one of the
following negative values if it fails:

-1 — DataWindow is null

-16 — DataWindow is not a TreeView DataWindow

Usage

A TreeView DataWindow has several TreeView level bands (groups) that
can be expanded and collapsed. You can use the CollapseAll method to
collapse all groups in a TreeView DataWindow.

The CollapseAll method triggers the Collapsing and Collapsed events
with row and level arguments of -1.

Examples

The following example collapses all groups:

See also

Collapse

CollapseAllChildren

CollapseLevel

ExpandAll


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x