Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 21061

How to get X,Y coordinates of a cell inside a table at run time. ? Given Row & Col Number

$
0
0

 

Hi Team,

 

I want to retrive X and Y coordinates of a cell inside a table(Grid) at run time.  I have the row and column number.

 

I need to simulate a right click on that cell using ClickR property for which I need X & Y parameter.

 

I have been able to access that cell's other properties like Text or Name or Click inside the cell by using following code.

 

Aliases.XXX.MainForm.SplitterPanel2.gridTrades.Rows.Item(0).Cells.Item(14).get_Text

OR

Aliases.XXX.MainForm.SplitterPanel2.gridTrades.Rows.Item(0).Cells.Item(14).Click

 

Here 0 & 14 are Row and Col Number respectively.

 

Please help me out to get the X & Y coordinates of this cell so I can have a Right Click on that cell.

 

Thanks,

Shreyansh Baid


Viewing all articles
Browse latest Browse all 21061