QTP directly cannot support DataGrid object. For that, user need to install corresponding Add-ins for support. If you are accessing Java application , install Java addins and if .Net, install .Net add-in etc...
After you install Add-in, QTP can recognize DataGrid control as WebTable object.
Browser("Bname").Page("PName").WebTable("WTName")
If you want to retrieve cell value from WebTable, use GetCellData method Browser("Bname").Page("PName").WebTable("WTName").GetCellData(rowno, cellno)
Above answer was rated as good by the following members: vamshi_g
RE: How verify a particular row item in data grid control?
The test application is a windows based app where I need to enter some data which is displayed in a Data Grid. After entering I need to check whether entered item is displayed or not. When I tried to put check point in the row with particular item problem arise. It is not identifying any row/col. Instead it is identifying the grid as a whole. plz give me valuable solution.
RE: How verify a particular row item in data grid control?
1. The Grid is not a Standard Object as Per QTP
2. When QTP is identifying the whole Grid as One Object please add it to OR and then try to fetch its data by the methods that are supported
2.1 In Case they are not getting fetch and the entire data of the Grid is reflected in the result please create a function with Looping logic on the Distribution of the data in the grid b ysome specfic (special character among the row entries.) 2.2 Then Fetch the data and use (InStr) Function for ur Comparision.
RE: How verify a particular row item in data grid control?
QTP directly cannot support DataGrid object. For that user need to install corresponding Add-ins for support. If you are accessing Java application install Java addins and if .Net install .Net add-in etc...
After you install Add-in QTP can recognize DataGrid control as WebTable object.
Browser("Bname").Page("PName").WebTable("WTName")
If you want to retrieve cell value from WebTable use GetCellData method Browser("Bname").Page("PName").WebTable("WTName").GetCellData(rowno cellno)