title: Listview as a log file
body: <p>Hi. I have a Windows form application. After I do something, what I want is to put updates in the <code>Listview</code>. More like a log file. Here is my code:</p>
  
  <pre><code>private void Form1_Load(object sender, EventArgs e)
  {
      listView1.View = View.Details;
      listView1.GridLines = true;
      listView1.FullRowSelect = true;
  
      //Add column header
      listView1.Columns.Add("Import Status", 100);
      listView1.Columns.Add("Price", 70);
      listView1.Columns.Add("Date", 70);
  
      //Add items in the listview
      string[] arr = new string[4];
      ListViewItem itm;
  
      //Add first item
      arr[0] = "product_1";
      arr[1] = "100";
      arr[2] = "10";
      itm = new ListViewItem(arr);
      listView1.Items.Add(itm);
  
      //Add second item
      arr[0] = "product_2";
      arr[1] = "200";
      arr[2] = "20";
      itm = new ListViewItem(arr);
      listView1.Items.Add(itm);
  }
  </code></pre>
  
  <p>How can I Add items to the <code>ListView</code> without 'hardcoding' them? Any suggestions? How can I do that every <code>Button.Click</code>, it can add rows with some data in it?</p>