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.
|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|
The property is applied to the following objects:
This property is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.
The property has the following parameter:
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.
The total number of grid columns in the specified grid view.
If you use Python or DelphiScript, you should enclose the parameter of the
wColumnCount property in square brackets:
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
wValue to iterate through object cells.
To view an example that demonstrates how to use the
wColumnCount property, see Iterating Through Rows in Developer Express QuantumGrid.
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)