niv Posted June 25, 2003 Posted June 25, 2003 Listbox Question 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? niv Quote
NewToC Posted July 6, 2003 Posted July 6, 2003 Here's one way: listMylist.Items.Clear(); string s1 = somedate; string s2 = moredata; string str = s1 + s2; listMylist.Items.Add(str); Quote
*Experts* Volte Posted July 6, 2003 *Experts* Posted July 6, 2003 You should look at the ListView control (read about it in the MSDN). It supports multiple columns, like the file explorer pane in My Computer, when you're in Detail View. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.