|This method is not supported in web tests (including cross-platform web tests) that use XPath expressions and CSS selectors to locate web elements. This method can be only used in tests that locate web objects by using internal identification properties provided by TestComplete.|
Depending on the Expand parameter, the
Expand action either expands or collapses the specified row. The effect is the same as if you clicked the “+” (or “-”) button of the row. The
Expand action does not move the mouse cursor.
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
|Expand||[in]||Optional||Boolean||Default value: True|
The method is applied to the following objects:
AngularUI Grid, Developer Express XtraGrid, DevExpressXtraGridView and 10 more objects, Infragistics UltraGrid, Infragistics WebDataGrid, Infragistics XamDataGrid, InfragisticsUltraGridView, InfragisticsWebDataGridView, Syncfusion Essential Grid (GridGroupingControl), SyncfusionEssGridView, Telerik RadGridView for WinForms, Telerik RadGridView for WPF, XamDataGridView « Collapse the list
The method has the following parameters:
Specifies the zero-based index of the desired data row. The first visible row has index 0, the second - 1, and so on. The index of the last visible row is
wRowCount - 1.
Specifies whether to expand or collapse the row.
If the specified row 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 records the
To collapse a 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 Infragistics UltraGrid.
Expand Action (Specific to DevExpressQuantumGrid Controls)
Expand Action (Specific to DevExpressXtraVerticalGrid Controls)
Expand Action (Specific to PropertyGrid Controls)
Collapse Action (Grid Controls)