Multiple Columns in a ListBox

Posted on 2004-08-16
Last Modified: 2010-04-15
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 ...

Question by:Pete2003
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 19

Accepted Solution

Desp earned 250 total points
ID: 11808945
You can use LISTVIEW control
if you are still intersted in Multiple Columns in a ListBox check:

Author Comment

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

LVL 19

Expert Comment

ID: 11809190
nO.. you can acheive it through string concatination but thats limiited..
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now


Author Comment

ID: 11809222
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 ...


Expert Comment

ID: 11809388
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?

Author Comment

ID: 11809489
I'm doing web forms and from what I understand you can only use it on normal windows
LVL 20

Expert Comment

ID: 11810138
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.
LVL 19

Expert Comment

ID: 11817590
yeah html table is a better alternative on the web for datagrid. But datagrids are much more flexible and powerful than those..

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question