Clearing selection in DataGridView when user clicks outside the DataGridView control

D

djyakov

Dear All,

What is the best way to clear selection in the DataGrid/DataGridView
when the user clicks outside the control? For example, user clicks
inside the DataGridView, selects entire row, then clicks outside the
DataGridView to clear the selection. What events can I monitor, and
what is the best approach to solving this problem? I also want to
clear the selection if user clicks on the whitespace caused by setting
DockStyle to Fill.


Any feedback would be appreciated. I am totally stuck.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top