winforms - c# Listview displaying in lines -


basically have listview control has coloums (displayed in detail mode) add items want displayed, each under 1 colomn (like invoice) displays them under first instead. i've been adding items below guess wrong way every other way tried not working. can see result in screenshot.

lstvline.items.add(lineitem, lstvline.items.count);    lstvline.items.add(itemname,lstvline.items.count); 

alt text

you need create subitems each of additional fields:

listviewitem item = new listviewitem ("something"); item.subitems.add ("brand info"); item.subitems.add ("type info"); lstvline.items.add(item); 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -