wExpanded Property (Grid Controls)

Applies to TestComplete 14.72, last modified on April 22, 2021
This property is not supported in web tests (including cross-platform web tests) that use XPath expressions and CSS selectors to locate web elements. This property can be only used in tests that locate web objects by using internal identification properties provided by TestComplete.

Description

Use this property to determine whether the specified row is expanded or collapsed.

Declaration

TestObj.wExpanded(Row)

Read-Only Property Boolean
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Row [in]    Required    Integer    

Applies To

The property is applied to the following objects:

View Mode

To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Parameters

The property has the following parameter:

Row

Specifies the index of the desired row. The index is zero-based and it corresponds to the row's position within the object's internal row collection rather than to the row's visible position in the object.

Property Value

Returns True if the row is expanded. Returns False otherwise.

Remarks

If the specified row is not found, the property returns False and posts an error message to the test log.

To expand and collapse grid rows, use the Expand and Collapse actions. You can also simulate collapsing and expanding grid rows by using the Click and DblClick actions.

If you use Python or DelphiScript, you should enclose the parameter of the Expand property in square brackets: Expand[Row].

See Also

wExpanded Property (Specific to DevExpressQuantumGrid Controls)
wExpanded Property (Specific to DevExpressXtraVerticalGrid Controls)
wExpanded Property (Specific to PropertyGrid Controls)
Collapse Action (Grid Controls)
Expand Action (Grid Controls)

Highlight search results