473,412 Members | 2,096 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,412 software developers and data experts.

List Box Columns

I have a listbox control that displays it's data using the DataSource,
DisplayMember and ValueMember properties. I've worked a thrid party control
(DevExpress)
that a similar ListBox control that allows me to add columns. I typed in the
following

dim colHeader as ListBox.Col (And no column appears).

With DevExpress I am able to add columns definng my own columens, and back a
while ago, I know I was able to use the Microsoft List Box Control or maybe
the List View Control to display more than just one column.

Using a DataTable/DataSet how can I quickly populete a ListBox/ListView to
show a total of three columsn that are visible? And, how to I assign a
specific data element from my DataSet/DataTable to each column?

Thanks,

Greg
Jun 27 '08 #1
2 2473
"Greg" <gj******@COMCAST.NETschrieb:
>I have a listbox control that displays it's data using the DataSource,
DisplayMember and ValueMember properties. I've worked a thrid party
control (DevExpress)
that a similar ListBox control that allows me to add columns. I typed in
the
following

dim colHeader as ListBox.Col (And no column appears).

With DevExpress I am able to add columns definng my own columens, and back
a while ago, I know I was able to use the Microsoft List Box Control or
maybe the List View Control to display more than just one column.
The Windows Forms listbox control does not support multiple data columns.

The Windows Forms listview control doesn't have a 'DataSource' property.

You may want to populate a Windows Forms datagridview control which looks
similar to the listview control in details mode.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Jun 27 '08 #2
Greg,

There is a misunderstanding that the newer VS versions have no listbox with
multiple columns.

It has, there are plenty of controls so called Grid.

It are simple multicolumn ListBoxes with beside a columnheader a row header.
If you make those latter invisible, then you have a simple one or
multicolumn ListBox.

This is not for the multicolumn Combobox, as there is no grid with a TextBox
header.

Cor

"Greg" <gj******@COMCAST.NETschreef in bericht
news:uT**************@TK2MSFTNGP03.phx.gbl...
>I have a listbox control that displays it's data using the DataSource,
DisplayMember and ValueMember properties. I've worked a thrid party
control (DevExpress)
that a similar ListBox control that allows me to add columns. I typed in
the
following

dim colHeader as ListBox.Col (And no column appears).

With DevExpress I am able to add columns definng my own columens, and back
a while ago, I know I was able to use the Microsoft List Box Control or
maybe the List View Control to display more than just one column.

Using a DataTable/DataSet how can I quickly populete a ListBox/ListView to
show a total of three columsn that are visible? And, how to I assign a
specific data element from my DataSet/DataTable to each column?

Thanks,

Greg

Jun 27 '08 #3

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

Similar topics

4
by: Marco Aschwanden | last post by:
Suppose you have a list of lists: theList = , ,] I would like to have a GENERIC way how to turn this list of list into another list of list. - A user can choose which columns she wants - A...
3
by: Deepa | last post by:
Hi Am doing a web app which has a datagrid with template columns. One of the columns has dropdowns for each row. I also have the EditCommandColumn. The problem am facing is I just see the last...
8
by: tom | last post by:
I am new to SQL administration. >From a list of IDs that are the primary key in one table (i.e. Customer Table), I want to make changes in tables that use those IDs as a foreign key. ...
6
by: Newsfeeds | last post by:
Hello All, Could anyone tell me why this code produces the output it does? noAdjacencies = 2 gridsPerAdj = 3 rows = 4 columns = 5
2
by: Brian | last post by:
Hope you all had a great holiday. I have a subform with a table with a combo box based on a select query. The combo box is set to display in a form in datasheet view. When I click the down...
3
by: moondaddy | last post by:
I'm wanting to create a bindable list object made up of a list of business classes. I'm writing this in a vb.net 1.1 winforms app and am using a code example by Rocky Lhotka for reference...
1
by: brian.newman | last post by:
I'm trying to link a gridview to another gridview in a Master-Details architecture. But the Details list isn't filtering like it is suppossed to. It will show all items on page load and it won't...
3
by: Cagey | last post by:
What I'm trying for: If this selection or if click on selection (highlighted line choice/ which ever selection change) w/in query's combo dropdown list box (on Switchboard), then Open in...
3
by: Harry Haller | last post by:
Hello, I want to implement a generic list which will be used to display 7 columns in a GridView. One should be able to sort, filter and page each of the 7 columns. Ideally the filter should be...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.