Populate a list box with multiple columns

  • Thread starter Thread starter John Sutor
  • Start date Start date
J

John Sutor

Does anyone know how to populate a listbox from an arraylist with
delimited values.
Either that or with just two values.
 
John,

Good question. Unless I am mistaken the DisplayMember property of the
ListControl gets the property of the data source whose contents that you want
to display. Unless you “fake†this out in the ArrayList (e.g. concatenating
the two fields together with a comma in the middle) you will only be able to
display one field. Can you use a datagrid in its place?

Good luck.
 
use
Server.HtmlDecode(" ") to put a space
add as many " " as you need white spaces in between your list
items to display as multiple columns
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top