Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding a Collection to a ListBox Object
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
00993867
Message ID:
00993872
Vues:
10
Martin,
I just remembered that I asked a similar question about a month ago. Take a look at this message for a example of a collection class that I used to create a collection object that I bound to a combobox' DataSource. You might find some other usefull information if you read the other messages in the thread.
MESSAGE#991152

Hope this helps.

Einar
>A pleasant good morning to all!
>
>I have this collection object which will contain a structure variable (one created using the Public Stucture... End Sturcture syntax.
>
>I was just curious if it is possible to bind this simple collection object to a ListBox or any other object?
>
>If it is possible... how do I accomplish this?
>
>I've tried...
>
>LstBx.DataSource = MyCollObj
>LstBx.DisplayMember = "Name"
>LstBx.ValueMember = "ID"
>
>But this did not work. I also tried...
>
>LstBx.DataSource = MyCollObj.Items("Name")
>
>Which also was flop. I tried other stuff as well, which didn't work (that's why I'm making this post). And hoping that the answer I get is YES!!! and a tip, hint, or clue as to how this can be done.
>
>Many Thanx! in advance 8 )
>
>Martin
Semper ubi sub ubi.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform