Forum Discussion

Litty_John_1's avatar
Litty_John_1
Occasional Contributor
13 years ago

How to access the properties of the DevExpressGrid?

How do I access the properties of a Dev Express Grid  which is only displayed on the click of a combo .Iam not able to access the internal properties through object
spy .I need the name of the grid ,loop through the rows of the grid and
get the value of each row in the grid for a particular column  and  I
have to simulate a click action on the row which is selected .I tried wRowCount ,but it throwed an exception object doesn't support method or property.  Please help ..



Thanks,

Litty
  • Hi John,



             I think all Grid properties are available in ClassName is TcxGrid only, not in TcxGridSite. Pls check it again.

             I am not sure this is you want, if yes use it.



    Thanks,

    Niranjan
  • Litty_John_1's avatar
    Litty_John_1
    Occasional Contributor
    Hi Niranjan,



    Thanks for the reply .TcxGridSite is the class name of the grid for which Iam  trying  to access the properties .Is there any other way you can suggest ??



    Litty
  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)
    Hi Litty,



    Please make sure that:

    * Your tested application is built with debug information (either internal or external), as explained here:

    Preparing Application With QuantumGrid Controls for TestComplete

    * Your tested application is created with a supported version of Delphi or C++Builder (see Supported Development Tools).

    * Your tested application uses a supported version number of the grid control (see DevExpressQuantumGrid Object - Supported Versions).

    * The Developer Express Components Support plug-in is enabled in File > Install Extensions.



    These are the requirements for access to the grid's internal properties and methods, and for correct functioning of the wRowCount, wColumnCount, wValue and similar properties provided by TestComplete.