PC Review


Reply
Thread Tools Rate Thread

Clearing selection in DataGridView when user clicks outside the DataGridView control

 
 
djyakov@gmail.com
Guest
Posts: n/a
 
      16th Feb 2006
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding user control to a cell in a DataGridView Ralph Microsoft C# .NET 0 15th Apr 2010 01:34 PM
user control in DataGridView Ali Microsoft C# .NET 1 15th Oct 2007 03:14 PM
How to bind a user control to a DataGridView =?Utf-8?B?WlM=?= Microsoft C# .NET 0 20th Jan 2007 01:45 AM
How can you add a custom user control to a datagridview? Bob Microsoft VB .NET 3 6th Mar 2006 07:22 PM
Using a custom user control in a datagridview cell =?Utf-8?B?U3RldmU=?= Microsoft Dot NET 0 10th Jan 2006 08:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:09 PM.