title: ListView.Items.Clear Not Working
body: <p>i am trying to populate listview on selection of node from treeview but every time i select node its get append in the listview my Listview.Items.Clear() function not working.
  My Code:</p>
  
  <pre><code>listView1.Clear();
              if (this.treeView1.SelectedNode.Tag != null)
              {
                  string msg = this.treeView1.SelectedNode.Tag.ToString();
                  int complaint_id = Convert.ToInt32(msg);
                  PopulateDataTable2(complaint_id);
                  foreach (DataRow row11 in dsTreeView_Info.Tables["Complaints_Info"].Rows)
                  {
                      listView1.Items.Add(new ListViewItem() { Text = row11["Complaint_Descriptions_Info"].ToString() });
                  }
              }
  </code></pre>