Forum Discussion

sundevils22's avatar
sundevils22
Occasional Contributor
13 years ago

Unable to read data form a grid .

I am facing proble to read data from a grid in my application which i am supposed to automate.Though the grid looks likes a table but most of  the standard properties are customised and disabled.



The test complete recognises this grid object as a single object which makes it difficult to access data in each individual cell.Since i have to double click on a grid cell value

to invoke a process ,the inability of the tool to read grid value is blocking my approach.



The object type is DataGridView.



Need help or suggestion to what approach needs to be followed.
  • Most of these types of grids have the cells set up as Columns and Items. If you look with the object spy and find the "columns" property or the "items" property of the datagrid, you should be able to input a number value and get the data from those values. 



    Sorry if my explanation is unclear, but hope this helps. 



    L-P

  • Hi Gopalakrishnan,


     


    Louis-Philippe is right. In most cases, child objects of tree and grid controls are internal, so TestComplete does not recognize them as individual objects and does not show them in the Object Browser. What grid control are you testing - we may give you some tips how to test it? What is the value of the control's WndClass property (you can check it using the Object Browser)? If the control is a .NET control, please tell us the value of its ClrFullClassName property.