DataGrid Class (Classic Agent)

Description

DataGrid class is the class for the complex grids and tables created by Infragistics UltraWinGrid controls.

The UltraWinGrid control supports three view styles for displaying data, single-band, and multi-band vertical and horizontal. While it is similar in concept to the existing Table class, it goes far beyond it. The Table class was designed to support data displayed in a flat, or single-band view, where the DataGrid class can handle complex data displays.

Availability

The DataGrid class is available for Windows Forms applications that use the Classic Agent or the Open Agent. The DataGrid class offers different functions and properties depending on the Agent that you use. This topic documents the methods and properties for the Classic Agent only.

Tip

The DataGrid is different from the SwfDataGrid, which is also part of the .NET extension. SwfDataGrid represents Microsoft’s .NET Framework DataGrid control. SwfDataGridView represents Microsoft’s .NET Framework DataGridView control.

Tag

The default tag is DataGrid.

Inheritance

DataGrid derives from the AnyWin class.

DataGrid-Related Data Types

In addition to the built-in and predefined data types available in Silk Test Classic, several predefined data types are provided specifically for DataGrid support. They are described in this Help and are referenced by the various methods that use them.

Properties

In addition to the properties it inherits from the AnyWin class, DataGrid has the following properties:

Property Datatype Description
$FocusRow DATAGRIDROW The row that has focus in the grid. Uses the GetFocusCell function.
$FocusCell DATAGRIDCELL The cell that has focus in the grid. Uses the GetFocusCell function.
$lsValue LIST OF STRING The text value of all the selected cells in the grid. Uses the GetMultiSelText function.
$sValue STRING The text value of the selected cell in the grid. Uses the GetSelText function.

For more information, see Properties.

Methods

In addition to the methods it inherits from the AnyWin class, DataGrid has the following methods: