basanth2717
13 years agoNew Contributor
Unable to double click on a cell - DevExpress.XtraGrid
Hello,
I am trying to double click on an Devexpress XtraGrid. When TestComplete records the application it generates the below code, but when executed it throws an Error(Attached error).
Sub Test1
Dim gridControl
Set gridControl = Sys.Process("Scb.Sabre.Desktop.Framework.ComponentHost4").WPFObject("HwndSource: MainWindow", "COMMODITIES SIP SYSTEM [TEST2_Test_Env] MIDDLE OFFICE").WinFormsObject("WinFormsAdapter", "").WinFormsObject("GridControl", "", 2)
Call gridControl.ClickCell(27, "DealNo")
End Sub
I tried several other methods like ClickCellXY etc..but they errored out too. I am able to access the grid but testcomplete does not identify the child rows.
I am using TestComplete Version 9.10
Grid Details:
ClrClassName : GridControl
ClrFullClassName : DevExpress.XtraGrid.GridControl
Product Name: DevExpress.XtraGrid
Product Version : 13.1.7.0
I am trying to double click on an Devexpress XtraGrid. When TestComplete records the application it generates the below code, but when executed it throws an Error(Attached error).
Sub Test1
Dim gridControl
Set gridControl = Sys.Process("Scb.Sabre.Desktop.Framework.ComponentHost4").WPFObject("HwndSource: MainWindow", "COMMODITIES SIP SYSTEM [TEST2_Test_Env] MIDDLE OFFICE").WinFormsObject("WinFormsAdapter", "").WinFormsObject("GridControl", "", 2)
Call gridControl.ClickCell(27, "DealNo")
End Sub
I tried several other methods like ClickCellXY etc..but they errored out too. I am able to access the grid but testcomplete does not identify the child rows.
I am using TestComplete Version 9.10
Grid Details:
ClrClassName : GridControl
ClrFullClassName : DevExpress.XtraGrid.GridControl
Product Name: DevExpress.XtraGrid
Product Version : 13.1.7.0