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
 
Back
Top