cancel
Showing results for 
Search instead for 
Did you mean: 

.NET DataGridView - Could not resolve data source

StevenBrixie
Level 3
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?
6 REPLIES 6

Denis__Dennehy
Level 15
Hello, could you provide more details about the error you are getting?

StevenBrixie
Level 3
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.

StevenBrixie
Level 3
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?

Denis__Dennehy
Level 15
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.

StevenBrixie
Level 3
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.

GiulianaSuetu_P
Level 3
Hi, I am having the same issue with a .Net DataGrid:

12720.png


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