Forum Discussion

ChrisPro's avatar
ChrisPro
Contributor
11 years ago

Access elements to TJvDBGrid

I would like to read elements in TJvDBGrid object (delphi).

What is the solution? In fact, the differents elements of column or row are not accessible with TestComplete.

5 Replies

  • Hi Chris,

    JVCL TJvDBGrid is a descendant of the standard VCL TDBGrid, and TestComplete supports TDBGrid, so it's probably just a matter of getting things setup correctly. Try this:

     

    • Build your application with debug information, as explained here.
    • In your TestComplete project, add TJvDBGrid  to Tools > Current Project Properties > Object Mapping > Borland Controls > DBGrid.

    Now your grid should have the wValue, wRowCount, ClickCell and other properties and methods for automation.