Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unbound dropdown list
Message
 
To
05/05/2004 17:43:32
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00901373
Message ID:
00901900
Views:
12
>(C#) I'm trying to bind a dropdown list to the data which populates the DDL, but the control on the form is not bound to any data on an underlying table (i.e., I simply want to populate the DDL). Using the Northwind database, I want a DDL of Employee last names. I tried
>Binding Source - Employee
>Binding Source Display Name - LastName
>Binding Source Value Member - EmployeeID
>Binding TYpe - One Way
>
>but get : Can't bind MmDropDownList1 to Employee.LastName
>
>When I try Binding TYpe - None
>the DDL is not populated.

Are you saying that you want to fill the list but not bind the selected value? If so, setting the values to what you listed above should work fine. Are you sure the Employee business object is instantiated and registered in the form's load? That would explain the error you're getting.

If you set the binding type to "None" that tells MM .NET not to bind the control at all...that's why the list doesn't get filled when you set it to None.

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