Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox Question
Message
From
25/06/2003 11:58:23
 
 
To
25/06/2003 10:44:01
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00803790
Message ID:
00803837
Views:
25
Alvin,

This is untested code, but you need to use SubItems, something like this:
FirstList.Items[0].SubItems.Add(etc...)
~~Bonnie


>I have 2 columns that I need to return from SQL into a
>listbox.
>
>UNIQUEID , FIRSTNAME
>
>FirstList.Items.Add(myRow.ItemArray.GetValue(5).ToString
>());
>
>The code above only adds 1 item to a row...
>
>Anyone know how to add 2 entries for every row in the
>listbox?
>
>Thank You.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform