List Box Columns

  • Thread starter Thread starter Greg
  • Start date Start date
G

Greg

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
 
Greg said:
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.
 
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
 
Back
Top