Link to home
Start Free TrialLog in
Avatar of Pete2003
Pete2003

asked on

Multiple Columns in a ListBox

Hi All,

I want to know if there is any way of making a list box with more then one column .... I'm terrified of the DataGrid :) so I'd like to use the ListBox if possible ...

Txs
Peter
ASKER CERTIFIED SOLUTION
Avatar of Fahad Mukhtar
Fahad Mukhtar
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Pete2003
Pete2003

ASKER

Ok that's someones personal implementation , but I want to know if the standard ListBox can do multiple columns ...

nO.. you can acheive it through string concatination but thats limiited..
That's what I've done right now .. I just pad the strings to the max len and get a visible column but ofcourse without column functionality ...

If you want column functionality, ListView is the way to go.  What are you trying to accomplish that might prevent you from using a ListView?
I'm doing web forms and from what I understand you can only use it on normal windows
No make to make list box with more than one column in web forms. If you need it read only, you can make a table or something to show the data in it. Otherwise you will need a bunch of controls, like a table with check boxes in one column, so that records can be selected, or something similar.
yeah html table is a better alternative on the web for datagrid. But datagrids are much more flexible and powerful than those..