Helpful Information
 
 
Category: .Net Development
C# ListView: Add Item+SubItem in Runtime

I really can't figure it out, and been searching the net for some code, but no luck! I can add a single item to the ListView, no problem, but how do I add a Item, with a SubItem, in runtime? I have two textboxes, one of them is the item, and the second is the subitem!

Can anyone be so gentle and spell it out for me? Thanks in advance :-)

Ok, I got it now!

Thread closed!

Got someproblem with the listview.
When i do this,
lv1.SubItems.Add("zz");
lv1.SubItems.Add("zzzz");

the items start to fill from the second column. How do i make it start from the first??

got it :)










privacy (GDPR)--