SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Nov 2015
    Location
    Italy
    Posts
    67
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    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:
    Code:
    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.

  2. #2
    Apprentice
    Join Date
    Mar 2016
    Posts
    24
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    I don't know if this is of any help, since the below worked on a WEBtable... but I had trouble clicking on a cell in a webtable until I found this construct:

    set DataGrid = browser(... ).page(... ).webtable(... )

    Code:
    DataGrid.object.rows(rownum-1).cells(colnum-1).Click
    That works reliably to click on a specific cell in a webtable. Maybe you could use that concept for your grid.

  3. #3
    Member
    Join Date
    Nov 2015
    Location
    Italy
    Posts
    67
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Unfortunately, I don't have the ROWS property.

    I can access to me row thorught:
    DataGrid.Object.Items.Item(0)

    But this object doesn't support Click event or DBClick event.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:19 PM.

Copyright BetaSoft Inc.