Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I bind a collection to a control?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00971040
Message ID:
00971101
Vues:
16
ToString() is now implemented and it works like a charm.
Thank you very much Bob.

Einar

>Bob,
>I am glad to hear that I can set my collection object as the datasource, but it didn't work as smoothly as I antisipated.
>
>this.myComboBox.DataSource = myCollection;
>
>I have 4 items in this collection at runtime and the combobox displayed 4 elements but those elements were all class names (including namespace).
>It just occured to me that I might have to implement ToString() for the class in the collection, is that correct?
>
>Einar
>
>
>>Yep, just set the collection as the data source. We do this all the time, binding combos to our custom collections that contain business objects.
Semper ubi sub ubi.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform