Expanded

Description

Occurs when a node in a TreeView DataWindow has expanded.

PowerBuilder event information Event ID: pbm_dwnexpanded

Argument

Description

row

Long by value. The number of the first row in the group that has been expanded.

grouplevel

Long by value. The TreeView level of the group that has been expanded.

Returns

There are no return codes.

Usage

A TreeView node expands when the user clicks the State icon (+) in the TreeView DataWindow or uses any of the Expand methods.

The Expanding event occurs before the Expanded event.

Examples

Example 1

The following statement writes the TreeView level and row to a single-line edit box when a node is expanded:

sle_1.text = "TreeView level: " + string(grouplevel)
sle_1.text += " Row: " + string(row)

See also