Lose focus on 1 datagridview having 2 datagridviews via even?

Posted on 2009-05-25
Medium Priority
Last Modified: 2012-05-07

I have 2 DataGridView`s. When the user clicks a row in DGV1 the selected Row in DGV2 must lose his focus, how can I do that?
Question by:MSFanboy
LVL 11

Accepted Solution

Anurag Agarwal earned 2000 total points
ID: 24466154
what you can do is call below code on the lost focus event of DGV2.


But if you want that the DGV2 grid should should be cleared only when row in DGV1 is selected then on row selected event of DGV1 call the above event.


Author Comment

ID: 24467136
the RowEnter event helped me thx a lot!

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
How to fix display issue, screen flickering issue when I plug in power cord to the machine. Before I start explaining the solution lets check out once the issue how it looks like after I connect the power cord. most of you also have faced this…
Hi, this video explains a free download that you can incorporate into your Access databases, or use stand-alone for contact management. Contacts -- Names, Addresses, Phone Numbers, eMail Addresses, Websites, Lists, Projects, Notes, Attachments…
Suggested Courses

600 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