Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multi Column Listbox

Status
Not open for further replies.

javabunch

Programmer
Joined
Dec 2, 2004
Messages
4
Location
DE
Hello everone,
I want to use Listboxes in C# with more than one columne.

I found out I have to use the ListView Controll to do this and used the following code to add rows.

listView1.View = View.Details;
ListViewItem item1 = new ListViewItem("item1", 0);
item1.SubItems.Add("RM1");
item1.SubItems.Add("Dienst");
listView1.Items.Add(item1);

But isn t there a better way to use a multi column listbox in .Net?

Best regards

javabunch
 
Thank you for the link. It s a good example.

Best regards

javabunch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top