Description
Use this property to determine whether a particular grid row (card) is expanded or collapsed.
Declaration
TestObj.wExpanded(Row, View)
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 | |
View | [in] | Optional | Variant | Default value: 0 |
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 parameters:
Row
Specifies the zero-based index of the desired row (card). The first row has index 0, the second - 1, and so on. The index of the last row is wRowCount
- 1.
View
Specifies the grid view that contains the row (card). You can enter the view’s zero-based index or 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 it corresponds to the leftmost view of the current grid level.
Property Value
Returns True
if the row (card) is expanded and 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 wExpanded
property in square brackets: wExpanded[Row, View]
.
See Also
Collapse Action (Specific to DevExpressQuantumGrid Controls)
Expand Action (Specific to DevExpressQuantumGrid Controls)