Description
Use the wColumnCount
property to get the total number of columns in the given object.
Declaration
TestObj.wColumnCount
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 |
Applies To
The property is applied to the following objects:
AngularUI Grid/, Borland String Grid, Borland TDBGrid and 35 more objects, Developer Express ExpressVerticalGrid, Developer Express WPF Grid, Developer Express XtraGrid, Developer Express XtraVerticalGrid, DevExpressXtraGridView, DevExpressXtraVerticalGridColumn, Ext JS Grid Panel, Flex DataGrid, Infragistics WebDataGrid, Infragistics WinGrid, Infragistics XamDataGrid, InfragisticsUltraGridView, InfragisticsWebDataGridView, Java Swing Table, JavaFX TableView, MFC Grid, Microsoft DataGrid, Microsoft DataGridView, Qt TableWidget, Rogue Wave Stingray Objective Grid, Rogue Wave Stingray Objective GridEx, Silverlight Grid, Spark DataGrid, Syncfusion Essential Grid (GridGroupingControl), Syncfusion Grid Controls, SyncfusionEssGridView, Telerik RadGridView for Silverlight, Telerik RadGridView for WinForms, Telerik RadGridView for WPF, TMS TAdvStringGrid, WPF Toolkit DataGrid, XamDataGridView, Xceed Grid, YUI 2 DataTable, YUI 3 DataTable « Collapse the list
View Mode
This property is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.
Property Value
The total number of columns.
If the InfragisticsWinGridView object specifies a grid group, the wColumnCount property returns the number of columns in the parent table of this group. |
Remarks
You can use the wColumnCount
property along with wRowCount
and wValue
to iterate through object cells.
Borland StringGrid, Borland TDBGrid To work with the Note that TestComplete does not support access to internal properties and methods of VCL controls in 64-bit C++Builder applications. Therefore, the property is inaccessible when testing Borland grid controls in such applications. The property can also be unavailable to your scripts if it is not used in the application code - Smart Linker just removes it during compilation, since there are no references to it. To solve the problem, make sure the property is used in the application’s source code. For instance, you can add a virtual method to your application that calls the desired property (the compiler does not exclude virtual methods). For detailed information, see Object Properties, Fields and Methods That Are Unavailable to TestComplete. |
Borland TDBGrid, Microsoft DataGrid, Microsoft DataGridView, Infragistics WinGridView, DevExpress XtraGridView, Syncfusion EssGridView, WPFToolkit DataGrid, Xceed DotNetGrid, Silverlight DataGrid The tested control can be configured so that some columns are hidden. So, the value of the |
Example
To view an example that demonstrates how to use the wColumnCount
property, see Iterating Through Rows in Infragistics UltraGrid.
See Also
wColumnCount Property (Specific to DevExpressQuantumGrid Controls)
wRowCount Property (Grid Controls)