Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Populate Combobox from data?? COME ON!!
Message
Information générale
Forum:
ASP.NET
Catégorie:
Silverlight
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01524187
Message ID:
01524256
Vues:
75
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform