title: Searching for subitems in listview
body: <p>I know there's already a question here about searching for subitems in listview but it's a bit complicated for a newbie like me. I did a simple windows form application with listview in it and inside the listview there are 2 columns named: 'Name' and 'Age'. I manage to search for the subitems but it searches first for the item in the first column, then the subitem. Here's the code:</p>
  <pre><code>private void btnSearch_Click(object sender, EventArgs e)
  {
  
      for (int i = 0; i &lt;=listView1.Items.Count-1; i++) 
          {
              foreach(ListViewItem.ListViewSubItem subitem in listView1.Items[i].SubItems)
              {
                  if (subitem.Text.Equals(txtSearch.Text))
                  {
                      MessageBox.Show(&quot;Subitem found!&quot;);
                  }
                  else
                  {
                      MessageBox.Show(&quot;Subitem not found!&quot;);
                  }
              }
          }
  }
  </code></pre>
  <p>(Assume the name: 'John' and age:'17' in the listview)</p>
  <p>Input:</p>
  <blockquote>
  <p>txtSearch: 17</p>
  </blockquote>
  <p>Output:</p>
  <blockquote>
  <p>Subitem not found! //Because it searches first in the first column(which is John)</p>
  <p>Subitem found! //Because it now detected the subitem</p>
  </blockquote>
  <p>If I remove the &quot;MessageBox.Show(&quot;Subitem not found!&quot;)&quot; and entered a correct input, ofcourse it will show the it has found the item but if I enter an incorrect input it won't do anything.
  Any idea how to search for subitems directly? Thanks.</p>