Forum Discussion
irina_lukina
14 years agoSuper Contributor
Hi Vikas,
Sorry for confusing you. The WPFObject method is applied to the window that holds your control (data grid). That is, you should use the following code:
Obj = Aliases.EFLT_EO_UI.HwndSource_MainView.MainView.Grid.mainTabControl.FeatureView.LayoutRoot.ResidenceSearchView
Count = Obj.WPFObject("Grid").Items.Count
For more information on using the WPFObject method, see its description in the TestComplete online help.