Solved

Multiple Columns in a ListBox

Posted on 2004-08-16
8
252 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
Comment Utility
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
Comment Utility
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
Comment Utility
nO.. you can acheive it through string concatination but thats limiited..
0
 

Author Comment

by:Pete2003
Comment Utility
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 4

Expert Comment

by:ErikPhilips
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now