ExpandChildView Action (Specific to XceedDotNetGrid Controls)

Applies to TestComplete 14.91, last modified on July 20, 2021

Description

Depending on the Expand parameter, the ExpandChildView action expands or collapses the specified child view. The effect is the same as when you click the “+” (or “-”) button in the row’s caption. However, the ExpandChildView action does not move the mouse cursor.

Declaration

TestObj.ExpandChildView(RowViewExpand)

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    
View [in]    Optional    Variant Default value: 0   
Expand [in]    Optional    Boolean Default value: True   
Result None

Applies To

The method is applied to the following objects:

View Mode

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

Parameters

The method has the following parameters:

Row

Specifies the parent row index of the desired vuew. The index is zero-based and relative to the group in which the row resides. The first row has index 0, the second - 1, and so on. Index of the last row is wRowCount - 1.

View

Specifies the child view that will be collapsed. You can enter the tables’s zero-based index or its caption.

The caption can contain asterisk (*) or question mark (?) wildcards or regular expressions. The asterisk corresponds to a string of any length (including an empty string), the question mark corresponds to any single character (including none). To specify more complicated parts of a caption, use regular expressions.

The caption can be case-sensitive or case-insensitive depending on the value of the Use case-sensitive parameters project setting.

Expand

Specifies whether to expand or collapse the row.

Result Value

None.

Remarks

If the specified child view is not found, ExpandChildView fails and posts an error message to the log.

To collapse the child view, you can either call the CollapseChildView action or call ExpandChildView with the Expand parameter set to False.

See Also

CollapseChildView Action (Specific to XceedDotNetGrid Controls)

Highlight search results