Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting List of Formatted Names
Message
From
24/12/2010 09:45:55
 
 
To
24/12/2010 09:35:34
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01493720
Message ID:
01493791
Views:
73
>>>>Hi Tim,
>>>>
>>>>I think the problem is with the binding. It is currently set like this:
>>>>
>>>>
BindingSource="Agent" BindingSourceDisplayMember="FullNameLFM"
>>>>
>>>>But if I understand things correctly, this is trying to bind to the Agent, not the Agent.Entity. Is there a different way to bind a dropdownlist to an Entity List?
>>>
>>>Frank,
>>>
>>>The binding source is supposed to be set to the business object that contains the EntityList you are binding to. If Agent is that business object, then it appears you have it correct. However, since your binding does not indicate you are synchronizing it to another table foreign key you could just populate the combo. What do you do with the data in the combo once they select a value?
>>>Tim
>>
>>Agent is that BO.
>>
>>The drop down list is just used to query the data. The user selects an Agent from the list then pushes a button and gets back records pertaining to that Agent.
>>
>>I have decided to change the UI so this issue is no longer important, but I would still love to understand how to do it.
>
>
>In that case, I would probably just fill the dropdown with all the values after they are retrieved. Basically the loop I gave you would be one way to do that. I may try after a bit to put a combo box on and see if I can bind it the way you did. Will let you know.
>Tim

Thanks, I'll try using the loop to populate it. Don't spend too much time on it (especially if it takes you away from your family) as it's not too important.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform