Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Specified cast is not valid with mmDropDownList
Message
 
To
11/02/2004 17:36:41
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00876483
Message ID:
00876539
Views:
8
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
Previous
Reply
Map
View

Click here to load this message in the networking platform