DataGrid: double click on selected row

Hi,
in my application I have this object
System.Windows.controls.datagrid

I would execute the double click on selected row, so I wrote:

WpfWindow("myApplication").WpfTable("myGrid").SelectRow 0
WpfWindow("myApplication").WpfTable("myGrid").ActiveCell 0,0


The row is selected, but the double click not works.

Why?

Thanks for the support.

 

Parents Reply Children
  • Hi,
    I have tried this solution and didn't work.
    "WpfWindow("myApplication").WpfTable("myGrid").ActivateCell 0,0"
    For my application instead of double clicking I can right click on the row and select the required option.
    code i am using:
    "WpfWindow("myApplication").WpfTable("myGrid").SelctRow 0
    "WpfWindow("myApplication").WpfTable("myGrid").Click ,,1
    Set objWshShell = WScript.CreateObject("WScript.Shell")

    objWshShell.SendKeys "{DOWN}"
    objWshShell.SendKeys "{ENTER}"

    The problem with this code is, since I can not get the x,y axis of the specific cell, the right click happens to only on the row in the middle. No matter which row I select.
    I tried to use send key Shift F10 instead of ""WpfWindow("myApplication").WpfTable("myGrid").Click ,,1". But couldn't figure it out.
    Do we need to install any hot fixes or any third party tools to get more control on wpftable rows. Please help.