Micro Focus QTP (UFT) Forums
Drag Drop from one MSFlexGrid to another MSFlexGrid - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Drag Drop from one MSFlexGrid to another MSFlexGrid (/Thread-Drag-Drop-from-one-MSFlexGrid-to-another-MSFlexGrid)



Drag Drop from one MSFlexGrid to another MSFlexGrid - bstalsb1 - 01-13-2015

I have an MSFlexGrid that I am able to determine which row I want to drag and another MSFlexGrird which I am able to determine where I can drag to. I think what I need to do is to find the X and Y coordinates for each of the rows. If I use the .Object.GetROProperty("abs_x) and .Object.GetROProperty("abs_y) I think I am getting the coordinates of the grid not the row. How do I go about getting the coordinates for what I need?

Then is it a matter of just doing a .MouseDown, .MouseMove and .MouseUp from a .FireEvent?

Thanks for any help you can give me as I have been struggling with this for quite some time.