Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Specified cast is not valid with mmDropDownList
Message
 
À
11/02/2004 17:36:41
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00876483
Message ID:
00876539
Vues:
9
Steve,

>I have an mmDropDownList with two way binding. On opening the page, the binding works fine. But when trying to save, using this.Save( myBizObj, dataSet), I receive the error "Specified cast is not valid".
>
>It happens in the call to BindBackPropertyBoundControls().
>
>Stepping into it, it fails at the point where it's looping thru the line which reads:
>
> // Cycle through all Property-bound controls
> foreach (ImmWebBindingSimple control in this.PropertyBoundControls)

Are you binding the combo box to a property of the form or the business object? You shouldn't be hitting this code unless you are. If you accidentally specify an invalid BindingSource or Display/Value member, it may think you're trying to bind to a property of an object instead.

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