PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms DataBinding DataGridView

Reply

DataBinding DataGridView

 
Thread Tools Rate Thread
Old 07-02-2006, 08:59 PM   #1
andre.mens@bennekens.nl
Guest
 
Posts: n/a
Default DataBinding DataGridView


Hi

I have a problem with databinding and the gridview. I have a details
view on the form and a DataGridView both are bound to the same data.
When i walk through the grid al is in sync correctly. So far so
good. Next i implement some event to handle the validations and
error messages on the data. Al is shown correct both the grid and
the edit controls. Next i implement the event and set the cancel
property to true. This works correctly i can't exit the edit control
before i correct the error. However when i click in the grid
validation isn't fired and the data is moved to a different row.
Is there somewhere a sample of what to implement to prevent the grid
from entering when i'm on a edit with a error data in it. This way i
can get incorrect data into my database.

Greetings Andre Mens

--
----------------------------------------------
Posted with NewsLeecher v3.0 Final
* Binary Usenet Leeching Made Easy
* http://www.newsleecher.com/?usenet
----------------------------------------------
  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off