title: listview in windows application
body: <p>am working in windows application with c#.Am creating the listview items dynamically..i want to add columns and items  for the listview and i did it too..i can create items but i cant add the columns name...my code is;</p>
  
  <pre><code>private void list_Load(object sender, EventArgs e)
      {
          listView1.Columns.Add("id",40, HorizontalAlignment.Left);
          listView1.Columns.Add("name", 60, HorizontalAlignment.Left);
          listView1.Columns.Add("price", 60, HorizontalAlignment.Left);
      }
  
      private void button1_Click(object sender, EventArgs e)
      {
          listView1.Items.Add(textBox1.Text);
          listView1.Items[listView1.Items.Count - 1].SubItems.Add(textBox2.Text);
          listView1.Items[listView1.Items.Count - 1].SubItems.Add(textBox3.Text);
  
          listView1.Items.Add(textBox3.Text);
          listView1.Items[listView1.Items.Count - 1].SubItems.Add(textBox1.Text);
          listView1.Items[listView1.Items.Count - 1].SubItems.Add(textBox2.Text);
  
          listView1.Items.Add(textBox2.Text);
          listView1.Items[listView1.Items.Count - 1].SubItems.Add(textBox1.Text);
          listView1.Items[listView1.Items.Count - 1].SubItems.Add(textBox3.Text);
      }
  </code></pre>