Search function on listview
<p>I am altering the question now!</p>

<p>I have the search working using the following:</p>

<pre><code>//check the array for a match
        foreach (Delivery d in mainForm.myDeliveries)
        {
            if (d.DeliveryName == searchValue)
            {
                ListViewItem item = lstDeliveryDetails.Items.Add(d.DeliveryName);
                item.SubItems.Add(d.DeliveryAddress);
                item.SubItems.Add(d.DeliveryDay);
                item.SubItems.Add(d.DeliveryTime);
                item.SubItems.Add(d.DeliveryMeal);
                item.SubItems.Add(d.DeliveryInstructions);
                item.SubItems.Add(d.DeliveryStatus);

            }
        }
</code></pre>

<p>My question is, what is the best way to now search all the other values, to make a complete search?
I know i could do if else statements and go through address, day, time, etc.</p>

<p>Is there a better way to acheive this?
And at the moment, the user has to enter the entire name to get the result, can i make it if they only enter a part of the name?</p>
