I created a two listview column 'Sample' and 'Quantity' in the design view mode. Now I want to add array data to mysample to 'Sample' column and myquantity to 'Quantity' column. But I am not how to specific which column the data the should go to. Please help. Here is my code -
str[] mysample = somedata;
str[] myquantity = somedata;
for (int i = 0, i < mysample; i++)
{
ListViewItems item1 = new ListViewItem();
item1.Subitems.Add(mysample[i].ToString());
listview1.Items.add(item1);
ListViewItems item2 = new ListViewItem();
item1.Subitems.Add(myquantity[i].ToString());
listview1.Items.add(item2);
}

ListViewobject (ListViewItem) as a subitem of the originalListViewItem.