ExpandAll – PB Docs 150

ExpandAll method (DataWindows)

Description

Expands all groups in a TreeView DataWindow.

Controls

DataWindow type

Method applies to

PowerBuilder

DataWindow control

Syntax

[PowerBuilder]

Argument

Description

dw_control

A reference to a TreeView-style DataWindow
control

Return Values

Returns 1 if the ExpandAll 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 ExpandAll method
to expand all groups in a TreeView DataWindow.

The ExpandAll method triggers the Expanding
and Expanded events with row and level arguments of –1.

Examples

The following example expands all groups:

See Also


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