Multicolumn listbox in 2005

  • Thread starter Thread starter Paul Bromley
  • Start date Start date
P

Paul Bromley

How can I use this please - I need 2 columns. I have been having difficulty
finding info on this and the 2005 Treeview control today.

Many thanks for any links or info,

Paul Bromley
 
Paul Bromley said:
How can I use this please - I need 2 columns. I have been having
difficulty finding info on this and the 2005 Treeview control today.

Use a listview control for this purpose.
 
Herfried,

I may have misled you here. I wish to use Listbox with two columns , hiding
one of them and then when the user selects the index of an item in the
listbox, I then copy the text contents of the hidden Listbox column to a
textbox. Is this possible with the new listbox control in multicolumn format
or not??

I mentioned the Treeview control as I have not been able to find details on
either of these VB.net 2005 controls anywere on the net.

Many thanks

Paul Bromley
 
Paul Bromley said:
I may have misled you here. I wish to use Listbox with two columns ,
hiding one of them and then when the user selects the index of an item in
the listbox, I then copy the text contents of the hidden Listbox column to
a textbox. Is this possible with the new listbox control in multicolumn
format or not??

No, that's not what 'MultiColumn' is used for. Nevertheless, there are some
techniques for binding multiple "columns" of data to an item shown in a
listbox or combobox control.
<URL:http://dotnet.mvps.org/dotnet/code/controls/#ItemData> contains some
code samples for the different techniques.
 
Thaks Herfried,

In that case I will try a 3rd party control that I have that will do this
for me (would in vb2003 anyway). I just thought that I would use the native
listbox control if this was multicolumn aware.

Best wishes

Paul Bromley
 
Paul Bromley said:
In that case I will try a 3rd party control that I have that will do this
for me (would in vb2003 anyway). I just thought that I would use the
native listbox control if this was multicolumn aware.

It is actually multicolumn aware since .NET 1.0.
 
Confused with this one. How can I set data to appear oin the various
columns, hide columnes, retrieve columne etc?? Any URLS on the web? I have
looked for this information, or have I got what you are saying wrong?

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top