Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Populate Combobox from data?? COME ON!!
Message
General information
Forum:
ASP.NET
Category:
Silverlight
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01524187
Message ID:
01524256
Views:
77
>As someone coming into silverlight programming from the ASP.NET world (and many earlier worlds), I'm absolutely astounded as to how completely broken and not-ready for BETA the combobox in Silverlight is when trying to populate it from any data source.
>
>I've literally spent days trying to get a combobox in a datagrid to populate the items from a RIA domaindatasource or any other method of getting data from my entity framework (using domaindatasource) objects.
>
>I've read so many contradictory/fragmented/error filled/incomplete blogs and other articles on the web that I could just hurl.
>
>I've yet to get it to populate (then I have to tackle setting selected item which appears more broken).
>
>This is supposed to be silverlight 4. IMHO it hasn't reached an alpha release for a 1.0 version yet.
>
>If anyone has a clear cut, COMPLETE and ACCURATE example of doing this I'd love to see it.

Hmm..... no answers.

Well, I'm more WPF than Silverlight, but they are usually similar enough that I might be able to help walk you through this.

There are generally 2 ways to go on this, and I understand the frustration, it is not very straight forward. One is a static data source set earlier in the resources section of the XAML.

This blog looks like it might help:

http://weblogs.asp.net/dwahlin/archive/2009/08/20/creating-a-silverlight-datacontext-proxy-to-simplify-data-binding-in-nested-controls.aspx

The less common way is to add the items to a collection on the items that are used to populate the DataGrid.

If that link doesn't help, show me your XAML and I'll see if I can find what the hangup is.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform