Working With Grids

Applies to TestComplete 14.0, last modified on January 23, 2019

TestComplete provides support for the most popular grid controls, including Microsoft DataGridView, Developer Express XtraGrid, Infragistics UltraGrid and others (for a full list, see Working With Grids - Basic Concepts). Supported grid controls are automatically associated with specific program objects that extend the grid control’s functionality with a number of supplementary methods and properties. These extended methods and properties let you perform various operations over grid controls, for example, simulate mouse clicks on grid cells, get and set cell values, and so on.

As for any other grid controls, the way you can work with them depends on whether the tested application is Open or non-Open:

  • For non-Open Applications, you can simulate mouse clicks, double-clicks, keypresses and other actions in the grids, using the Click, DblClick, Keys and other methods like the Sys.Keys method. You can also use low-level procedures to simulate mouse and keyboard events over the grid control. However, this kind of testing is too complex and it is difficult to support, so we will not consider it here.

  • If your tested application is Open, tests get access to the grid’s internal methods and properties. For instance, to get the value of a grid cell, your script code can use a particular method of the grid. For a list of supported Open applications, see About Open Applications.

The topics of this section describe the approaches that can be used to perform various operations over Windows grid controls and provide detailed information on working with popular Windows grid controls (examples are included). To learn how to work with Android grid view controls, see the Working With Android Grid View Controls section.

In This Section

Working With Grids - Basic Concepts

Contains information about the support provided by TestComplete for grid controls.

Common Operations for Grids

Describes approaches that can be used to perform various operations over grid controls.

Working With Borland TDBGrid

Explains how you can work with Borland TDBGrid controls.

Working With Developer Express QuantumGrid

Describes how to work with Developer Express QuantumGrid controls.

Working With Developer Express XtraGrid

Describes how to work with Developer Express XtraGrid controls.

Working With Infragistics UltraGrid

Describes how to work with Infragistics UltraGrid controls.

Working With Infragistics UltraWebGrid

Describes how to work with Infragistics UltraWebGrid controls.

Working With Java Swing JTable

Describes how to work with Java Swing JTable controls.

Working With Microsoft DataGrid

Explains how to work with Microsoft DataGrid .NET controls.

Working With Microsoft DataGridView

Describes how to work with Microsoft DataGridView controls.

Working With Microsoft PropertyGrid

Explains how you can work with Microsoft PropertyGrid controls.

Working With Syncfusion GridControl

Describes how to work with the GridControl controls of the Syncfusion Essential Grid library.

Working With Syncfusion GridDataBoundGrid

Explains how you can work with the GridDataBoundGrid controls of the Syncfusion Essential Grid library.

Working With Syncfusion GridGroupingControl

Describes how you can work with the GridGroupingControl controls of the Syncfusion Essential Grid library.

Related Topics of Interest

Table Checkpoints

Explains how to create checkpoints that verify data displayed in tabular controls.

Samples

TestComplete includes a number of sample projects that demonstrate how to work with various grid controls:

Borland TDBGrid:

<TestComplete Samples>\Desktop\Working With Grids\Borland TDBGrid

Borland StringGrid:

<TestComplete Samples>\Desktop\Working With Grids\Borland TStringGrid

Developer Express PropertyGrid:

<TestComplete Samples>\Desktop\Working With Grids\DevExpress PropertyGrid

Developer Express QuantumGrid:

<TestComplete Samples>\Desktop\Working With Grids\DevExpress QuantumGrid

Developer Express VerticalGrid:

<TestComplete Samples>\Desktop\Working With Grids\DevExpress VerticalGrid

Developer Express WPFGrid:

<TestComplete Samples>\Desktop\Working With Grids\DevExpress WPFGrid

Developer Express XtraGrid:

<TestComplete Samples>\Desktop\Working With Grids\DevExpress XtraGrid

Developer Express XtraVerticalGrid:

<TestComplete Samples>\Desktop\Working With Grids\DevExpress XtraVerticalGrid

Infragistics UltraGrid:

<TestComplete Samples>\Desktop\Working With Grids\Infragistics WinGrid

Infragistics XamDataGrid:

<TestComplete Samples>\Desktop\Working With Grids\Infragistics XamDataGrid

Swing JTable:

<TestComplete Samples>\Desktop\Working With Grids\JTable

Microsoft DataGridView:

<TestComplete Samples>\Desktop\Working With Grids\Microsoft DataGridView

Microsoft PropertyGrid:

<TestComplete Samples>\Desktop\Working With Grids\Microsoft PropertyGrid

QtTableWidget:

<TestComplete Samples>\Desktop\Working With Grids\QtTableWidget

Telerik RadGridView:

<TestComplete Samples>\Desktop\Working With Grids\Telerik RadGridView

TMS TAdvStringGrid:

<TestComplete Samples>\Desktop\Working With Grids\TMS TAdvStringGrid

Xceed GridControl:

<TestComplete Samples>\Desktop\Working With Grids\Xceed DotNetGrid

You can download more grid samples from http://support.smartbear.com/downloads/testcomplete/samples. The names of the sample scripts coincide with the names of the grid controls they test:

ComponentOne True DBGrid Pro

ComponentOne VSFlexGrid Pro

Janus GridEX

Janus GridEX v3

See Also

Object-Specific Tasks
Simulating User Actions
Supported Controls

Highlight search results