Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Listview skips first column

With this code I add values in my columns. But the first column is constantly skipped.

This is the code I use:

        foreach (Muziek m in lijstMuziek)
        {
            ListViewItem lvi = new ListViewItem();
            lvi.SubItems.Add(m.Rapper);
            lvi.SubItems.Add(m.Titel);
            lvi.SubItems.Add(m.DuurMinuut.ToString());
            listView1.Items.Add(lvi);
        }

Listview

I changed the displayindex, but that doesn't matter.

Anyone got a clue why this could happen?

like image 315
Swag Avatar asked Jun 19 '13 19:06

Swag


1 Answers

The first item's text goes in ListViewItem.Text. The subitems are for subsequent columns.

like image 52
Dark Falcon Avatar answered Oct 03 '22 15:10

Dark Falcon