Working With Infragistics UltraGrid

Applies to TestComplete 15.65, last modified on July 17, 2024

TestComplete has the Infragistics Control Support plugin that expands TestComplete abilities to interact with Infragistics UltraGrid controls from scripts. If this plugin is installed and enabled, TestComplete extends the UltraGrid control functionality with methods, properties and actions of the InfragisticsUltraGrid object. These supplementary members let you perform specific operations over the UltraGrid control, for example, simulate clicks on grid cells, obtains and set values in grid cells, expand and collapse rows and so on.

Since UltraGrid can only be used within .NET applications, which are always “open” to TestComplete, the internal properties, fields and methods of the UltraGrid control are also visible to TestComplete. This “openness” means that you can use UltraGrid’s “native” methods and properties to perform desired actions, for example, to get a grid cell’s value.

In order for TestComplete to have access to internal methods and properties of the UltraGrid control and to extend the UltraGrid functionality, both the .NET Application Support and Infragistics Control Support plugins must be installed and enabled.

The topics of this section provide detailed information about performing various operations with the UltraGrid control. They also contain numerous sample routines that you can use in your scripts with minimum changes (if any).

In This Section

Accessing Grid Elements in Infragistics UltraGrid

Explains how to access the individual elements of UltraGrid.

Searching for Records in Infragistics UltraGrid

Describes how to search for a specific item within the UltraGrid control.

Selecting Cells in Infragistics UltraGrid

Describes the approaches used to select individual UltraGrid cells.

Obtaining and Setting Cell Values in Infragistics UltraGrid

Describes how you can get and set values of individual items displayed by the grid.

Copying and Pasting Cell Values in Infragistics UltraGrid

Describes how you can copy and paste values into UltraGrid cells.

Working With Specific In-place Editors in Infragistics UltraGrid

Explains how to work with editors embedded into cells.

Selecting Multiple Rows in Infragistics UltraGrid

Describes how to select one or several UltraGrid rows.

Obtaining Selected Elements in Infragistics UltraGrid

Explains how to obtain the selected cells, columns and rows in the UltraGrid control.

Iterating Through Rows in Infragistics UltraGrid

Explains how to process the UltraGrid items data in a loop and gives an example of saving the grid contents to an XML file.

Sorting Data in Infragistics UltraGrid

Explains how to perform column sorting in the UltraGrid control.

Expanding and Collapsing Rows in Infragistics UltraGrid

Describes how you can expand or collapse UltraGrid rows.

Related Topics of Interest

Table Checkpoints

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


TestComplete includes a sample project that demonstrates how you can work with Infragistics UltraGrid controls from scripts:

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

Note: If you do not have the sample, download the TestComplete Samples installation package from the page of our website and run it.

The script requires the sample application which is part of the Infragistics NetAdvantage trial download package that is available at The script assumes that by default, the application under test has the following path: <Infragistics NetAdvantage>\Windows Forms\Samples\WinGrid\Cs\SamplesExplorer\bin\SamplesExplorer.exe. Before running the script, make sure that the TestComplete Tested Applications project item contains a valid link to the application to be tested (SamplesExplorer.exe).

See Also

Infragistics UltraGrid Support
Working With Grids
Supported Infragistics Controls
About Open Applications

Highlight search results