Poll: Am i clear with my question
You do not have permission to vote in this poll.
yes
0%
0 0%
no
0%
0 0%
Total 0 vote(s) 0%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with devexpress.XtraGrid Control
#1
Not Solved
Hello everybody,

I am very new to this QTP.I am working on an automation project currently.

I need to enter some values on grid1 and click on "add" then this row gets added to another grid. so basically there are 2 grids.one is input grid with one row and the other one is display grid which displays the added rows.

now i need to automate this process.

So if i give values for the grid using the QTP in this way

Code:
SwfWindow("ATRMS_UI").SwfTable("gridControl2").SetView ""
SwfWindow("ATRMS_UI").SwfTable("gridControl2").SelectCell 0,"*Name"
SwfWindow("ATRMS_UI").SwfTable("gridControl2").SetCellData 0,"*Name","param6"
SwfWindow("ATRMS_UI").SwfTable("gridControl2").SelectCell 0,"*Behaviour"
SwfWindow("ATRMS_UI").SwfTable("gridControl2").SetCellData 0,"*Behaviour","FIXED"
SwfWindow("ATRMS_UI").SwfTable("gridControl2").SelectCell 0,"*DataType"
SwfWindow("ATRMS_UI").SwfTable("gridControl2").SetCellData 0,"*DataType","INTEGER"
SwfWindow("ATRMS_UI").SwfTable("gridControl2").SelectCell 0,"*DefaultValues"
SwfWindow("ATRMS_UI").SwfTable("gridControl2").SetCellData 0,"*DefaultValues","23"
SwfWindow("ATRMS_UI").SwfObject("Add").Click

This is setting the values for corresponding columns in that grid.but it is just appearing in the UI and actually not getting associated with grid as such.The datasource binded with this datagrid is not getting these values.

How i came to this conclusion is all these fields are mandatory.so after clicking add it is not retrieving anything and it tells please fill all fields.

Is there any other way to automatically enter some values to XtraGrid.GridControl or is there any way to set data to datasource from QTP?

can someone help me with this.

Hope i have mentioned my problem clearly.Let me know if some clarifications needed on this.

Thanks in advance.
Lakshmi.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  DevExpress v15.2 Objects are not identified using UFT 14.53 diwakar 0 1,405 11-19-2019, 06:26 PM
Last Post: diwakar
  DevExpress TreeList Error Autobot 3 3,687 11-18-2014, 01:53 PM
Last Post: Autobot
  Does QTP/UFT support "Microsoft.Windows.Control" (one type of wpf control)? abhishikth12221 2 3,983 01-22-2014, 06:24 PM
Last Post: abhishikth12221
  QTP and DevExpress control MahalakshmiDevi 0 3,052 02-11-2010, 12:24 PM
Last Post: MahalakshmiDevi
Question Devexpress Controls and QTP9.5 praveen.24carats 0 2,437 01-05-2009, 11:40 AM
Last Post: praveen.24carats

Forum Jump:


Users browsing this thread: 2 Guest(s)