Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MultiColumn ListBox
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00970814
Message ID:
00970840
Vues:
18
I might be mistaken but I think you misunderstand what the multicolumn listbox does. It snakes the single column like this:

Line0 Line2
Line1 Line3

I think you can use a ListView to do what you want (show multiple columns on a single line).


>When I have a simple form with a ListBox where MultiColumn = false I can use the following code to add items to the listbox:
>
>this.listBox1.Items.Add("Line 0");
>this.listBox1.Items.Add("Line 1");
>this.listBox1.Items.Add("Line 2");
>
>
>Now lets say I want to get a little bit more advanced and use a ListBox where MultiColumn = true. Can I use similar code to populate 2 or maybe 3 columns in the listbox or do I have to add my data to a datatable and then bind the datatable to the ListBox?
>
>
>Thanks,
>Einar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform