473,394 Members | 1,935 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ListBox with multiple columns

I think I'm going crazy, but I cannot remember how to create a listbox with
multiple columns as well as the sortable header block (a la Outlook message
list). I've seen the examples of how to structure items in a listbox into
"columns" by comparing the string length and adding white space but I was at
some point able to do it similar to a DataGrid with the ListBox look.

Does anyone have this code?

Thanks,
Brandon
Nov 20 '05 #1
4 5442
Uhm I think you're thinking Listview not listbox...

"Brandon Potter" <br**********@brandonpotter.com> wrote in message
news:uK**************@TK2MSFTNGP12.phx.gbl...
I think I'm going crazy, but I cannot remember how to create a listbox with multiple columns as well as the sortable header block (a la Outlook message list). I've seen the examples of how to structure items in a listbox into
"columns" by comparing the string length and adding white space but I was at some point able to do it similar to a DataGrid with the ListBox look.

Does anyone have this code?

Thanks,
Brandon

Nov 20 '05 #2
Hi,

Try the Listview instead.

Ken
--------------
"Brandon Potter" <br**********@brandonpotter.com> wrote in message
news:uK**************@TK2MSFTNGP12.phx.gbl...
I think I'm going crazy, but I cannot remember how to create a listbox with
multiple columns as well as the sortable header block (a la Outlook
message
list). I've seen the examples of how to structure items in a listbox into
"columns" by comparing the string length and adding white space but I was
at
some point able to do it similar to a DataGrid with the ListBox look.

Does anyone have this code?

Thanks,
Brandon

Nov 20 '05 #3
That was the one.

Thanks,
Brandon

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:#I**************@TK2MSFTNGP10.phx.gbl...
Hi,

Try the Listview instead.

Ken
--------------
"Brandon Potter" <br**********@brandonpotter.com> wrote in message
news:uK**************@TK2MSFTNGP12.phx.gbl...
I think I'm going crazy, but I cannot remember how to create a listbox with multiple columns as well as the sortable header block (a la Outlook
message
list). I've seen the examples of how to structure items in a listbox into "columns" by comparing the string length and adding white space but I was at
some point able to do it similar to a DataGrid with the ListBox look.

Does anyone have this code?

Thanks,
Brandon


Nov 20 '05 #4
* "Brandon Potter" <br**********@brandonpotter.com> scripsit:
I think I'm going crazy, but I cannot remember how to create a listbox with
multiple columns as well as the sortable header block (a la Outlook message
list). I've seen the examples of how to structure items in a listbox into
"columns" by comparing the string length and adding white space but I was at
some point able to do it similar to a DataGrid with the ListBox look.


Use a listview control instead ('View' set to 'Details'). More info on
sorting the items in the listview control (in C#):

<http://www.codeproject.com/cs/miscctrl/#ListView+controls>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: carl.barrett | last post by:
Hi, I have a list box that displays 2 columns. Behind it sits a query with five columns. These are Column1 (DOB), column2 (a concatenated string of Surname Forname, Title), Column3 (Surname),...
6
by: Chris Leuty | last post by:
I am populating a multiselect Listbox from a dataset, with the content of the listbox filled by one table, and the selections determined from another table. So far, I have been keeping the dataset...
5
by: Lie | last post by:
Hi all, I have problem in getting selectedindex of multiple listbox selection in a datagrid. I have a listbox with multiple selection mode inside datagrid. In Edit mode, I need to get back all...
1
by: JMann101 | last post by:
I am writing a ASP.NET(VB) application and am having some trouble. I have a datagrid which list users and when an admin clicks "edit" a defined column becomes visible and a dynamic listbox control...
2
by: tangokilo | last post by:
Hello and thanks for your help, I have the following Listbox created in VisualStudio 2003 designer, desiring to select multiple entries from that list: -------------------------------...
3
by: David L Wright II | last post by:
I have a data bound listbox that I want to select multiple lines then process each line. I bound a two column datatable to the listbox and set the DisplayMember property to the appropriate column...
2
by: scratchadere | last post by:
I am tryin to partition a listbox into multiple columns.Here is the real problem.I am getting data from MS ACCESS database.I want to display it juz like how an email account displays unread messages...
6
by: =?Utf-8?B?SnVzdGlu?= | last post by:
Hello: Does anyone know how I can create a multi-column listbox in VB.Net (Windows)...I am using VS.Net 2003. If there is another control available that can be databound with multiple...
2
by: ray well | last post by:
i need to display 2 columns of data in a list box. how would i set this up IN CODE. say my table is tblNames, and i have 2 fields, FirstName, LastName, and want the data to show up in 2...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.