Forum Discussion

ASI_Tester's avatar
ASI_Tester
New Contributor
10 years ago

Unable to set value in a grid (Desktop application which is of the form "TddwGridSite". Please help.

Hi,

 

Unable to set value in a grid (Desktop application) which is of the type "MerkmaleGrid.TddwGridSite". At present it is recognising the whole object as a grid. Unable to set/read value from the cell. product language is Delphi.

4 Replies

  • Ravik's avatar
    Ravik
    Super Contributor

    This may help you, try like this

     

    ObjName.Grid.Rows.Item(0).Cells.Item(1).Click

    ObjName.Grid.Keys (your data)

     

    OR

     

    Rows.Item(i).cells.Item(7).set_Value("UrData")
    • ASI_Tester's avatar
      ASI_Tester
      New Contributor

      Hi,

       

      Thank you for your reply.

       

      I tried that what you suggested, but in this case, it is recognizing the word "Run" as name not found.

       

      Please find the attached screenshot of the error.

       

      Thank you.

       

  • m_essaid's avatar
    m_essaid
    Valued Contributor

    hi,

    since you have, when you spy the grid with TestComplete, no info in - for example - RowCount or ColCount, it may be a debug info issue.

    can't you act on this grid "blindely" ? with mouse coordinates, or double-click, ...

  • NisHera's avatar
    NisHera
    Valued Contributor

    1) make sure you have compiled correctly delphi aplication like this link

    2) You can access grid from your object like MerkmaleGrid.clickCell(3,'column') for more

    (.... cells are not in gridsite but on grid)

    3) you can not spy individual cells but you can access trough code as above