Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding a Collection to a ListBox Object
Message
De
08/03/2005 21:04:26
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Binding a Collection to a ListBox Object
Divers
Thread ID:
00993867
Message ID:
00993867
Vues:
62
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
Shit happens!!!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform