Depending on the Expand parameter, the
Expand action expands or collapses the specified grid row (card). The effect is the same as when you click the “+” (or “-”) button of the row (card). However, the
Expand action does not move the mouse cursor.
TestObj.Expand(Row, View, Expand)
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
|View||[in]||Optional||Variant||Default value: 0|
|Expand||[in]||Optional||Boolean||Default value: True|
The method is applied to the following objects:
This method is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.
The method has the following parameters:
Specifies the zero-based index of the desired row (card). The first visible row has index 0, the second - 1, and so on. Index of the last row is
wRowCount - 1.
Specifies the grid view that contains the row (card). You can enter the view’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.
The default value of the View parameter is 0 and corresponds to the leftmost view in the current grid level.
Specifies whether to expand or collapse the row (card).
If the specified row (card) is not found,
Expand fails and posts an error message to the log.
The script recorder recognizes mouse clicks on the “-” buttons within the rows and cards and records the
To collapse the row, you can either call the
Collapse action or call
Expand with the Expand parameter set to False.
To view an example that demonstrates how to use the
Expand action, see Expanding and Collapsing Rows in Developer Express QuantumGrid.
Collapse Action (Specific to DevExpressQuantumGrid Controls)