wColumnCount Property (Specific to DevExpressQuantumGrid Controls)

Applies to TestComplete 15.46, last modified on January 09, 2023

Description

Use the wColumnCount property to get the total number of columns in a particular grid view. The returned number includes all available columns, including those that are not displayed in the view.

Declaration

TestObj.wColumnCount(View)

Read-Only Property Integer
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   

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

The property has the following parameter:

View

Specifies the grid view whose column count you want to get. 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 corresponds to the leftmost view of the current grid level.

Property Value

The total number of grid columns in the specified grid view.

Remarks

If you use Python or DelphiScript, you should enclose the parameter of the wColumnCount property in square brackets: wColumnCount[View].

The QuantumGrid (TcxGrid) control can be configured so that some columns are hidden. So, the value of the wColumnCount property may differ from the number of columns that are actually displayed in the grid.

You can use the wColumnCount property along with wRowCount and wValue to iterate through object cells.

Example

To view an example that demonstrates how to use the wColumnCount property, see Iterating Through Rows in Developer Express QuantumGrid.

See Also

wColumnCount Property (Specific to DevExpressQuantumGrid Controls)
wRowCount Property (Specific to DevExpressQuantumGrid Controls)
wView Property (Specific to Developer Express QuantumGrid Controls)
wViewCount Property (Specific to Developer Express QuantumGrid Controls)
wValue Property (Specific to DevExpressQuantumGrid Controls)

Highlight search results