PC Review


Reply
Thread Tools Rate Thread

DataGridView Selection Problems

 
 
Paul Cheetham
Guest
Posts: n/a
 
      21st Jul 2006
Hi,

I have a DataGridView control, where I am setting its Datasource
property to a datatable. The DataGridView has it's MultiSelect property
set to false
I also have a handler for the SelectionChanged event.

When I load the data, I set the DataSource property, and then call
ClearSelection() to make sure there are no selected rows.

This fires the SelectionChanged event, with Row 0 being selected, as the
event appears to fire before the selection actually gets changed.


How do I know whether the selection has changed or is about to be
changed? At the moment I just can't tell.


Thanks.


Paul Cheetham
 
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
on datagridview row selection... A Microsoft Dot NET Framework Forms 0 20th Oct 2006 11:26 AM
DataGridView row selection Lennart Microsoft C# .NET 2 23rd Jul 2006 09:39 PM
DataGridView Selection Paul Cheetham Microsoft C# .NET 0 22nd May 2006 07:31 PM
DataGridView and selection Andy Microsoft Dot NET Framework Forms 0 22nd Mar 2006 09:18 PM
Clearing selection in DataGridView when user clicks outside the DataGridView control djyakov@gmail.com Microsoft Dot NET Framework Forms 0 16th Feb 2006 06:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:49 AM.