How to set AutomationId in WPF flexgrid cell

Posted by: gunjalgajjar on 27 November 2019, 6:37 am EST

    • Post Options:
    • Link

    Posted 27 November 2019, 6:37 am EST

    Hi,

    We are using WPF flexgrid 4.0 and have created a wrapper over it. When trying to detect the Flexgrid using Inspect.exe, it is not able to detect it.

    Tried with other Automation tool too, but even they were not able to detect the grid/cell.

    We are using pywinAuto to automate the WPF UI Elements.

    Tried with override AutomationPeer OnCreateAutomationPeer class with C1FlexGridAutomationPeer in the wrapper class, still not working.

    Any suggestion/help ?

  • Posted 28 November 2019, 6:02 am EST

    Hello,

    C1FlexGrid for WPF edition does support Automation. For information on UI Automation support, please refer: https://www.grapecity.com/componentone/docs/wpf/online-studio/UIAutomationSupport.html

    Additionally, we have a product sample application ‘FlexGrid_UIATest’ that shows how to perform Automation for C1FlexGrid. You can find the application installed at C:\Users\GPCTAdmin\Documents\ComponentOne Samples\WPF\C1.WPF.Automation\CS

    If the application does not help, we request you to please share your application along with scripts related to C1FlexGrid for WPF.

    Thanks,

    Ruchir

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels