Forum Discussion

lhuang5's avatar
lhuang5
Occasional Contributor
11 years ago

Object spy of WPF object: DataGridRowHeader

Hi, 



We have a self-defined DataGrid WPF object used in our application. We would like to use TestComplete to map all components in this table. Almost all components can be mapped except for the header of each row. According to our developers, the type of WPF controller used for row header is DataGridRowHeader. We can map the column header to be DataGridColumnHeader  in our application. 



What is possible reason for this problem with  mapping?



The TestComplete we used is Version 9.31.3889.7.



Thanks & Regards,

Liping
  • Hi Liping,

     


    Some child objects of grid controls are internal, so TestComplete does not recognize them as individual objects and does not show them in the Object Browser. Please refer to the "Working With Microsoft DataGrid - Overview" article - it contains the list of common tasks over your control, as well as the ways to accomplish them in TestComplete.


     

  • lhuang5's avatar
    lhuang5
    Occasional Contributor
    Hi Tanya,



    Thanks for your reply. I went through the article you mentioned. The article talks mostly about Microsoft DataGrid which seems to be WinFormObject. The DataGrid Object in our application is WPFObject using NameMapping in TestComplete. 



    TestComplete provides many good methods for many operations of Microsoft DataGrid. Our DataGrid WPFObject after mapping cannot find these methods. 



    What we need now is to simulate  the row/rows selection with mouse. So we hope to be able to map DataGridRowHeader object in order to simulate the click on the header for selection action. 



    It would be very nice if TestComplete can have the similar method for WPF DataGrid as ClickRowIndicator for Microsoft DataGrid.



    Regards,

    Liping