Topic Thread

Expand all | Collapse all

.NET DataGridView - Could not resolve data source

  • 1.  .NET DataGridView - Could not resolve data source

    Posted 02-10-2017 02:08
    I have added a .NET DataGridView element in the application modeler. It identifies properly in the modeler. And, in the Object, I can send mouse clicks to it. However, my object gets an error when I try to retrieve the rows from the control. Is there something else I need to do when defining this control or attempting to read from it?


  • 2.  Hello, could you provide more

    Posted 02-13-2017 20:52
    Hello, could you provide more details about the error you are getting?


  • 3.  I'm working on a demo for a

    Posted 02-13-2017 23:35
    I'm working on a demo for a group within my organization. I created a Winforms application with a DataGridView. I have been able to add the DataGridView element in the application modeler. When I run a test to read data in the DataGridView into a collection object, I get an error I mentioned in the error message I specified in the error message. Is there any known incompatibilities with my OS or .NET version? I am running Windows 10 and the application is written using .NET Framework 4.6.1. I have been able to work around the issue using accessibility mode but this is not optimal.


  • 4.  One more thing: my work

    Posted 02-13-2017 23:40
    One more thing: my work around uses the Global Send Keys action to send CTRL+A and CTRL+C to the DataGridView object. The works as expected but throws an error I have to handle. The message says invalid return type. This seems a bit odd for a send key operation. Is there something I may be doing wrong here?


  • 5.  The invalid return type error

    Posted 02-22-2017 15:07
    The invalid return type error is not one I have heard of before - it must be specific to your application and how clipboard works. For your datagridview element, when you identify it in application modeller does it identify it as just a Windows element rather than element type? If so it might be worth manually changing the Element Type drop down also has .NET DataGrid or DataGridView available and changing it to that - as this may give you more options in a read stage.


  • 6.  I have the drop down set to

    Posted 03-03-2017 06:29
    I have the drop down set to DataGridView and have tried .NET DataGrid as well. I get the same error. I'm going to revisit the application tomorrow and try a few more things. Thanks for the help.


  • 7.  RE: .NET DataGridView - Could not resolve data source

    Posted 05-25-2020 16:07
    Hi, I am having the same issue with a .Net DataGrid:



    ------------------------------
    Giuliana Suetu Pasqualini
    RPA Specialist
    DiRWA Brasil
    America/Sao_Paulo
    ------------------------------