Solved

Multiple Columns in a ListBox

Posted on 2004-08-16
8
253 Views
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 ...

Txs
Peter
0
Comment
Question by:Pete2003
8 Comments
 
LVL 19

Accepted Solution

by:
Desp earned 250 total points
ID: 11808945
You can use LISTVIEW control
if you are still intersted in Multiple Columns in a ListBox check:
http://www.codeproject.com/cs/combobox/multicolumnlistbox.asp
0
 

Author Comment

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

0
 
LVL 19

Expert Comment

by:Desp
ID: 11809190
nO.. you can acheive it through string concatination but thats limiited..
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

Author Comment

by:Pete2003
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 ...

0
 
LVL 4

Expert Comment

by:ErikPhilips
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?
0
 

Author Comment

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

Expert Comment

by:TheAvenger
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.
0
 
LVL 19

Expert Comment

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

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
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 …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

777 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