CollapseAll method (DataWindows)
Description
Collapses all groups in a TreeView DataWindow.
Controls
DataWindow type |
Method applies to |
---|---|
PowerBuilder |
DataWindow control |
Syntax
[PowerBuilder]
1 |
Integer <span>dw_control</span>.<span>CollapseAll</span>( ) |
Argument |
Description |
---|---|
dw_control |
A reference to a TreeView-style DataWindow |
Return Values
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:
1 |
integer li_ret<br>li_ret = dw_treeview.<span>CollapseAll</span>() |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments