wColumn Property (Grid Controls)

Applies to TestComplete 15.0, last modified on October 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 the wColumn property to get the caption of an object column by its index.

Declaration

TestObj.wColumn(Column)

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

Applies To

The property is applied to the following objects:

View Mode

This property is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.

Parameters

Column

The zero-based index of the grid column whose caption you want to retrieve. Note that this parameter takes the column’s position within the grid’s internal columns collection rather than the column’s visible position in the grid (in general, these positions can differ).

Property Value

A string holding the caption of the specified column.

Remarks

If the column with the specified index is not found, wColumn returns an empty string and posts an error message to the test log.

To get the total number of columns read the wColumnCount property.

Example

To view an example that demonstrates how to use the wColumn property, see Iterating Through Rows in Infragistics UltraGrid.

See Also

wColumn Property (Specific to Developer Express QuantumGrid Controls)
wColumnCount Property (Grid Controls)

Highlight search results