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
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