Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listbox valuemember prop

Status
Not open for further replies.

fortage

MIS
Joined
Jun 15, 2000
Messages
329
Location
US
I have a two dimensional string array that i'm iterating through and building a listbox. I would like the value and display to reflect the 2 dimensions. How is this possible?
 
Use a listview with columns

ListViewItem item = listview1.Items.Add("hello");
item.SubItems.Add("Joe");

Set the listview display type to Details and add 2 columns via the columns property.

then your display will look something like

------------------
| first | second |
------------------
| hello | Joe |
------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top