Working With Microsoft PropertyGrid

Applies to TestComplete 14.40, last modified on April 22, 2021

TestComplete has the Microsoft Control Support plugin that expands TestComplete abilities to interact with Microsoft PropertyGrid controls from scripts. If this plugin is installed and enabled, TestComplete extends the PropertyGrid control functionality with methods, properties and actions of the MicrosoftPropertyGrid object. These supplementary members let you perform specific operations over the PropertyGrid control, for example, simulate clicks on grid items, obtain and set item values, expand and collapse items and so on.

Since PropertyGrid is a .NET control and can be used only within .NET applications, which are always “open” to TestComplete, the internal methods and properties of the PropertyGrid control are also visible to TestComplete. This “openness” means that you can use the PropertyGrid’s “native” methods and properties to perform the needed actions as well.

Finally, you can work with the PropertyGrid control as a black-box application window, that is, you can simulate various mouse actions and keystrokes, record and play back low-level procedures, and so on. For more information, see Simulating User Actions.

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

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

In This Section

Accessing Items in Microsoft PropertyGrid

Explains how you can access items in the PropertyGrid control.

Searching for Items in Microsoft PropertyGrid

Describes how you can check if the PropertyGrid contains a specific item.

Getting the Focused Item in Microsoft PropertyGrid

Explains how to determine the item that is currently focused in the PropertyGrid.

Selecting Items in Microsoft PropertyGrid

Describes the approaches used to select individual PropertyGrid cells.

Obtaining and Setting Item Values in Microsoft PropertyGrid

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

Working With In-place Editors in Microsoft PropertyGrid

Explains how you can “press” buttons embedded into property value editors from scripts and work with dropdown editors.

Copying and Pasting Item Values in Microsoft PropertyGrid

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

Iterating Through Items in Microsoft PropertyGrid

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

Expanding and Collapsing Items in Microsoft PropertyGrid

Describes how you can expand or collapse PropertyGrid items.

Selecting Property Views in Microsoft PropertyGrid

Explains how to switch between various grid views.

Related Topics of Interest

Table Checkpoints

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

See Also

Working With Grids
Supported Microsoft Controls
Testing .NET Applications
Microsoft PropertyGrid Support

Highlight search results