How can I achieve this search condition?
<p>I want to implement some search condition like the below which I want to make in best optimized way, how can I achieve this?</p>

<pre><code>switch (e.CommandName)
{
   case "DRESS":
      chkItem.Items.Clear();
      chkItem.DataSource = cDressing.GetAllDressingDetail(cWebUtil.CurrClientID);
      chkItem.DataTextField = "Description";
      chkItem.DataValueField = "DressingID";
      chkItem.DataBind();
      CurrBtnMode = btnMode.Dressing;
      // ModalPopupExtender1.TargetControlID = ((Button)grdOrder.Rows[currItem.OrderItemID -1].FindControl("btnDress")).ID.ToString();

      if (currItem.DressingItems.Count &gt; 0)
      {
         foreach(cOrderItemDressing itemDress in currItem.DressingItems )
         {
            // I want here to apply condtion for those chkItem object's DressingID exist in the itemDress objets's  DressingID should 
            // have checked state in checkbox list to be populated.
         }
      }

      ModalPopupExtender1.Show();
</code></pre>
