Clearing selection in DataGridView when user clicks outside the DataGridView control

  • Thread starter Thread starter djyakov
  • Start date Start date
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.
 
Back
Top