0

Basically I have a Listview control which has coloums (displayed in Detail mode) I add items to it that I want displayed, each under 1 colomn (Like an invoice) but it displays them all under the first instead. I've been adding items like this below which I guess is the wrong way to do it but every other way I tried is not working. You can see he result in the screenshot.

lstVLine.Items.Add(lineItem, lstVLine.Items.Count);  

lstVLine.Items.Add(itemName,lstVLine.Items.Count);

alt text

Community
  • 1
  • 1
Tumble
  • 53
  • 3
  • 8

1 Answers1

5

You need to create SubItems for each of the additional fields:

ListViewItem item = new ListViewItem ("Something");
item.SubItems.Add ("Brand info");
item.SubItems.Add ("Type info");
lstVLine.Items.Add(item);
Foxfire
  • 5,675
  • 21
  • 29