Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help about the DataGrid object
#1
Not Solved
I am using QTP9.0 version. I am trying to select a particular row from the datagrid. But the problem is, QTP identifies the datagrid as a single object GXWND. But it is not identifying the rows or columns in that datagrid. Please find the screenshot of that Data Grid.
And I tried the following code to select a particular row:

Code:
l = Window("Product").Window("Product Selection").WinObject("GXWND").GetROProperty("x")
b = Window("Product").Window("Product Selection").WinObject("GXWND").GetROProperty("y")
r = Window("Product").Window("Product Selection").WinObject("GXWND").GetROProperty("width")
t = Window("Product").Window("Product Selection").WinObject("GXWND").GetROProperty("height")
x = (l+r)/2
y = (b+t)/2
Window("Product").Window("Product Selection").WinObject("GXWND").Click x, y
This helps to select a particular row in x & y co-ordinates. But i want to select a defined Product Alias Name which is in Data Table and to select that value, we have to scroll down the datagrid. Please help me for this issue.


Attached Files Image(s)
   
Reply


Messages In This Thread
Help about the DataGrid object - by vimal_selvam - 08-26-2009, 09:31 AM
RE: Help about the DataGrid object - by basanth27 - 08-26-2009, 10:51 AM
RE: Help about the DataGrid object - by basanth27 - 08-26-2009, 11:46 AM
RE: Help about the DataGrid object - by basanth27 - 08-26-2009, 03:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [UFT] [WPF] DataGrid: get items of ControlTemplate robertosalemi 0 3,293 07-14-2016, 07:52 PM
Last Post: robertosalemi
  [UFT] [WPF] DataGrid: check if vertical and horizontal scrollbars are visible robertosalemi 0 2,256 07-13-2016, 06:33 PM
Last Post: robertosalemi
  DataGrid: double click on selected row robertosalemi 0 4,290 05-12-2016, 03:00 PM
Last Post: robertosalemi
  WPF DataGrid is not recognizing properly suvenduitc@gmail.com 0 3,157 02-13-2014, 03:27 PM
Last Post: suvenduitc@gmail.com

Forum Jump:


Users browsing this thread: 1 Guest(s)