.NET DataGridView - Could not resolve data source
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-02-17 02:08 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
13-02-17 08:52 PM
Hello, could you provide more details about the error you are getting?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
13-02-17 11:35 PM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
13-02-17 11:40 PM
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?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
22-02-17 03:07 PM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-03-17 06:29 AM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
25-05-20 04:07 PM
Hi, I am having the same issue with a .Net DataGrid:

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