Solved

Manipulate a Datagridview with Sendmessage

Posted on 2013-01-31
3
738 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
  • 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 500 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Suggested Solutions

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

733 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