bhavtosh sharma

bhavtosh sharma

  • NA
  • 23
  • 1.5k

How to Access, Control Datagridview of external winform app?

Jun 26 2019 3:34 AM
Hello,
I have a .net winform app with 1 form and 1 dgv control.
I searched and found some ways like windows api and ui automation stuff but i could not find more details to perform above actions especially with datagridview control example.

Can someone kindly suggest or share some starting points so that i can move ahead? Im badly stuck with this requirement for days....

What i need is a way to access that datagridview and manipulate the data from another winform app in few ways like:

1. copy/paste single or multiple rows
2. edit data/rows
3. right click on a row

I searched and found some ways like windows api and ui automation stuff but i could not find more details or any example to perform above actions especially with datagridview control.

Can someone kindly suggest or share some starting points so that i can move ahead? Im badly stuck with this requirement for days....

Thanks....
 

Answers (1)