|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.
wRowCount property to determine the number of rows in the given object.
|A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
The property is applied to the following objects:
AngularUI Grid, Borland String Grid, Borland TDBGrid and 36 more objects, Developer Express ExpressVerticalGrid, Developer Express WPF Grid, Developer Express XtraGrid, Developer Express XtraVerticalGrid, DevExpressXtraGridView, DevExpressXtraVerticalGridColumn, Ext JS Grid Panel, Flex DataGrid, Infragistics UltraGrid, Infragistics WebDataGrid, 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, SAP GUI ShellGridView, 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
The total number of rows.
|Borland TDBGrid objects:
If the data displayed by the XtraGrid control is grouped by one or several columns, data rows can be hidden under collapsed groups. The
Syncfusion Essential Grid (GridGroupingControl) objects:For a grouped table or a group that has child groups, the
wRowCount property returns 0. To access data rows in a grouped table, you should first use the
wGroup property to get a
SyncfusionEssGridView object corresponding to a particular group. Using the properties and methods of the obtained object, you can work with rows that belong to that group.
|Borland String Grid, Borland TDBGrid objects:
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.
To view an example that demonstrates how to use the
wRowCount property, see Obtaining Selected Records in Microsoft DataGrid.