we have a grid which has child objects. now we need to compare the parent row value with the child row values. I am able to fetch the child row column value. how to get the value of the parent row
Hello KIrtee,
Thank you for posting in our forum.
If I understand you correctly you have a reference to the child row’s cell in your hierarchical grid. Now you need to get a reference to a particular cell in the parent row. You can achieve this with code like this:
UltraGridCell parentRowCell = childCell.Row.ParentRow.Cells["[Parent Cell Name] or [Index]"];
here childCell is the child cell you have a reference to.
Please let me know if you need any additional information.
Thank you for using Infragistics Controls.
I am using UFT to identify the objects. could you help me with the code where I can use it. Can you help me in the proper syntax using GetNAProperty.
or with GEtCellData method
Thank you for your feedback.
I am not sure if I understand you correctly. How do you get the value of the child row’s cell? Can you send me the script which you are using? You may both use GetNAProperty and GetCellData. However for both methods you will need to know the row index and the column you need to get cell text for.
Here is both methods syntax for your reference:
cellData = SwfWindow("Form Name").SwfTable("Grid Name").GetCellData(rowIndex, collIndex)
cellData = SwfWindow("Form Name").SwfTable("Grid Name").GetNAProperty("Rows[rowIndex].Cells[collIndex].Text")
So please let me know how you get the child cell data and I will try to help you with getting the parent cell data.
Looking forward to your reply.
this is the grid, I want the retrieve the value from the cell which is marked in orange?
can anyone help me