Expands all groups in a TreeView DataWindow.
DataWindow type  | 
Method applies to  | 
|---|---|
PowerBuilder  | 
DataWindow control  | 
Integer dw_control.ExpandAll( )
Argument  | 
Description  | 
|---|---|
dw_control  | 
A reference to a TreeView-style DataWindow control  | 
Returns 1 if the ExpandAll operation succeeds and one of the following negative values if it fails:
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.
The following example expands all groups:
integer li_ret li_ret = dw_treeview.ExpandAll()