Listbox / Combobox with multiple fields as displaymember

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to populate a combobox and/or a listbox with several fields as
displaymember. Both controls allow only one field as displaymember.

I need the display member to look like this (the columns should be left
aligned), where each columns represents a field in the underlying datatable:

001 SomeText 987654321
002 SomeText 1 123456789
003 SomeText 100 321456987

I am using Visual Basic .Net 2005

Can anybody help me with this?

--
Sergio Torres C.
(505) 897 2041
___________________
http://www.stcsys.com
___________________
 
Sergio,

Both the datagrid control and the listview control are more appropriate for
multicolumn display than the listbox/combobox.

Kerry Moorman
 
In the query that populates the listbox you could concatenate the fields and
some separator spaces .
 
Thank you for your input...

I tried what you say but the comlumns content has variable width and I am
not using ANSI Padding in my database. Even if I activate the padding, the
columns are not aligned, because of the use of true type font...

--
Sergio Torres C.
(505) 897 2041
___________________
http://www.stcsys.com
___________________
 
Back
Top