PC Review


Reply
Thread Tools Rate Thread

DataGridView RowValidation Event

 
 
crw
Guest
Posts: n/a
 
      24th Nov 2006
I have a master/detail form that uses a DataGridView to show child
records. I am using the RowValidating event to validate correctly
entered data. As part of the validation process, I set the Cancel
property of the event to true when bad data is present. This works
fine as long as the master binding source remains on the current
record.

If the active master row changes, while a cell in the data grid is in
edit mode, the form freezes. It does not redraw and stops responding
to all events. The grid will still show the pencil in the row header.
This only occurs if a the DataGridView looses focus while a cell is in
edit mode. If no cells were currently being edited when the grid
looses focus everything is fine.

 
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
DataGridView Event John Wright Microsoft VB .NET 5 8th Jul 2009 08:48 PM
DataGridView and KeyDown event M K Microsoft C# .NET 3 3rd Jul 2007 10:41 PM
Updateing event of datagridview abhya Microsoft VB .NET 1 6th Mar 2007 09:50 AM
Key Down Event datagridview chris81 Microsoft VB .NET 0 2nd Nov 2006 10:16 AM
How to catch "new-row-editing-cancelled" event in DataGridView (isthere any similar event?) Paul Jones Microsoft Dot NET Framework Forms 2 25th Jul 2006 02:29 PM


Features
 

Advertising
 

Newsgroups
 


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