10-04-2010, 06:56 PM
Hi Taran,
try GetCellData
object.GetCellData (Row, Column)
the sample bellow is for web, try to use it for windows elements, by changing the objects from web to windows:
here is a sample for .NET Windows Forms, Get Data from a Specified Cell in an 'Infragistics UltraWinGrid' Control :
and another one, Get Data from a Specified Cell in a 'DevExpress XtraGrid' Control:
see within the QTP Help: GetCellData Method (Swf Table)
I hope it will help you.
try GetCellData
object.GetCellData (Row, Column)
the sample bellow is for web, try to use it for windows elements, by changing the objects from web to windows:
Code:
Browser(..).Page(..).WebTable("micclass := WebElement" , "class := obj_Class", "Html Tag := TD", "Text := obj_Text", "Index:=obj_Index").GetCellData("1", "1")
here is a sample for .NET Windows Forms, Get Data from a Specified Cell in an 'Infragistics UltraWinGrid' Control :
Code:
Sub GetCellData_Example1()
'The following example uses the GetCellData method with Infragistics UltraWinGrid control to return the data
'contained in the second row of the "Description" column within the second band level.
MyData = SwfWindow("Layouts").SwfTable("gridOne").GetCellData("0;1", "Description")
MsgBox MyData
End Sub
and another one, Get Data from a Specified Cell in a 'DevExpress XtraGrid' Control:
Code:
Sub GetCellData_Example2()
'The following example uses the GetCellData method with DevExpress XtraGrid control to return the data contained
'in the third row of the "CustomerID" column within the "Orders" view.
SwfWindow("MasterView").SwfTable("gridControl1").SetView "3 Orders;"
SwfWindow("MasterView").SwfTable("gridControl1").SelectCell 2, "CustomerID"
MyData = SwfWindow("MasterView").SwfTable("gridControl1").GetCellData("2", "CustomerID")
MsgBox MyData
End Sub
see within the QTP Help: GetCellData Method (Swf Table)
I hope it will help you.