To obtain values displayed in cells of the Developer Express
QuantumGrid control, you should use the internal methods and proeprties
of the grid. This article describes these properties and contains
sample code that demonstrates how you can obtain the cell values.
To get cell values, TestComplete should have access to the internal methods and properties of the TcxGrid object. TcxGrid is the class name of the QuantumGrid control. That is, the tested application must be compiled as an Open Application with debug information.
QuantumGrid may contain several node levels. To determine how the data is displayed by a level, the QuantumGrid use view objects. To obtain the text displayed in a particular cell, use the following method of the view object:
This method returns the text that is shown in the grid cells. The RowIndex and ColumnIndex parameters specify the row and column indexes of the cell. Both indexes are zero-based.
The following sample demonstrates how you can use this method to obtain cell values. The sample contains the following routines:
One more way to obtain the cell text is to use the following property of the view object:
The following sample demonstrates how you can use this property: