I have a listview with two columns. The first column is filled with items imported from an external file. The second column is supposed to be filled with values that are calculated in another function of the software. How is this possible?
EDIT
string[] arr = new string[4];
ListViewItem itm;
private void button3_Click(object sender, EventArgs e)
{
listView1.Columns.Add("ProductName", 100);
listView1.Columns.Add("Price", 70);
//Add items in the listview
//Add first item
arr[0] = "product_1";
itm = new ListViewItem(arr);
listView1.Items.Add(itm);
//2
arr[0] = "product_2";
itm = new ListViewItem(arr);
listView1.Items.Add(itm);
listView1.CheckBoxes = true;
The result is something like this : 
Now I have another function, a simple button. Let's say that I want to press the button and fill the second column of the listview with some values. In this case it is the price of each product.
I wrote the following :
private void button4_Click(object sender, EventArgs e)
{
//1
arr[1] = "20000";
itm = new ListViewItem(arr);
listView1.Items.Add(itm);
//Add second item
arr[1] = "200";
itm = new ListViewItem(arr);
listView1.Items.Add(itm);
}
The first column is changing as well. I only want to put the prices calculated at one function next to a list of products.
