Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Multiple Columns in a ListBox

Posted on 2004-08-16
8
Medium Priority
?
262 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
[X]
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
8 Comments
 
LVL 19

Accepted Solution

by:
Fahad Mukhtar earned 1000 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:Fahad Mukhtar
ID: 11809190
nO.. you can acheive it through string concatination but thats limiited..
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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:Fahad Mukhtar
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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

722 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