Click to See Complete Forum and Search --> : Multi column list box


Bill Crawley
October 23rd, 2007, 06:25 AM
Hi All,

I have a couple of listbox's that currently display data in the format

13.6 - xxxxxxxxxxxxxx
13.65 - xxxxxxxxxxxxxxxx

The functionality of the boxes work fine, but I've been asked to display the data so that the columns line up:

13.6 - xxxxxxxxxxx
13.65 - xxxxxxxxxx
I currently add items manually and use string.Concat to form each data line.
Further compounded is that the actual data xxxxxxxx often spans more than 1 line as this value can be rather long, so I need to be able to wrap the value.

I could bind the data to a datagrid that would give me what I want, but then I have the trouble of the interaction between the 2 list boxes.

My 2 listboxes are set up as the classic move details from 1 listbox to the other , then when the user is certain that they have the right data in the right boxes go and do my processing.

Hope this makes sense thanks.