ListBox with multiple columns

  • Thread starter Thread starter Brandon Potter
  • Start date Start date
B

Brandon Potter

I think I'm going crazy, but I cannot remember how to create a listbox with
multiple columns as well as the sortable header block (a la Outlook message
list). I've seen the examples of how to structure items in a listbox into
"columns" by comparing the string length and adding white space but I was at
some point able to do it similar to a DataGrid with the ListBox look.

Does anyone have this code?

Thanks,
Brandon
 
* "Brandon Potter said:
I think I'm going crazy, but I cannot remember how to create a listbox with
multiple columns as well as the sortable header block (a la Outlook message
list). I've seen the examples of how to structure items in a listbox into
"columns" by comparing the string length and adding white space but I was at
some point able to do it similar to a DataGrid with the ListBox look.

Use a listview control instead ('View' set to 'Details'). More info on
sorting the items in the listview control (in C#):

<http://www.codeproject.com/cs/miscctrl/#ListView+controls>
 
Back
Top