Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Not detecting changes in DataGridView
Message
 
À
24/01/2007 13:41:00
Jeff Corder
Ambit Technologies, LLC
Missouri, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01188851
Message ID:
01189452
Vues:
18
>I have an mmDataGridView on a WinForm. The BindingSource of the mmDataGridView is registered and set as a child to the primary business object. If I make a change to the contents of the grid and navigate to the next record, I do not get a warning that data has changed.
>
>I put a break before it navigates away and the DataGridView.IsCurrentRowDirty returns true, but the object's .IsChanged() returns false. The grid is properly populating and when I save the business object, the data is saved and can be retrieved (i.e. navigate away and navigate back).
>
>Any ideas on what I've done wrong this time?
>
>Thanks,
>Jeff
>
>P.S. I'm going to rename the DataGridView to Eleanor - see "Gone in 60 Seconds"

This sounds dangerously familiar...something to do with EndEdit(). Let me try to replicate and see what I can find out.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform