Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Manipulate a Datagridview with Sendmessage

Posted on 2013-01-31
3
Medium Priority
?
778 Views
Last Modified: 2013-03-07
Hello, I need to make an application that "modifies" some content of another application's datagridview. I say "modify" in quotes because it's merely a column of checkboxes I need to set Checked/Unchecked.

Besides, I would like to search a column and if it matches a certain parameter, paint the whole line.

Given that I have the control's handle, is it possible to do with Sendmessage or another method?? (I say Sendmessage beacuse I've played with it in Delphi to do it in Listviews, but never in datagridviews)

Thanks in advance!!
0
Comment
Question by:toddinho
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Expert Comment

by:jiangsheng
ID: 38844324
Use AccExplorer to check if you can access the checkbox via one of the accessibility interfaces.
0
 

Author Comment

by:toddinho
ID: 38852887
with this app I could access the datagridview and even the rows in it... But how can I use it to change their value programmatically??
0
 
LVL 4

Accepted Solution

by:
jiangsheng earned 2000 total points
ID: 38856496
If you can find the control in the accessible tree ( a better view can be found in UISpy.exe) you can set the value of the control via IAccessible.accValue (or view->Control patterns in UISpy) .

If you cannot reliably locate the control, you can try to access the control via the hackish method used by managed spy
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question