title: How to iterate through the checkedlistbox and check items?
body: <p>I have a check list box bind with some datasource i assigned valueMember to some id?
  Now the checkedlist box is binded, i have another datable through which i need to catch each id if some coulmn and want to check it in the checkedlist box item's value member value, if both match the item will be checked. I did following but unable to check the check box.,
  Could you help me with this?</p>
  
  <pre><code>  private void catCmb_SelectedIndexChanged(object sender, EventArgs e)
          {
              if (mode == "EDIT")
              {
                  custOptionChkList.DataSource = cDressing.GetAllDressingDetailByCatID(14);
                  custOptionChkList.DisplayMember = "Description";
                  custOptionChkList.ValueMember = "CatID";
                  DataTable dt = objCFreeCust.GetAllFreeCustomizationItem(currProductID, custCmb.SelectedIndex);
                  foreach (var ListItem in custOptionChkList.Items)
                  {
                      DataRowView drv = ListItem as DataRowView;
                      int id = Convert.ToInt16(drv["CatID"]);
                      foreach (DataRow dr in dt.Rows)
                      {
                          if (Convert.ToInt16(dr["CustomizationId"]) == id)
                          {
                              //here i need to check the item's check box from checkedboxlist
                          }
  
                      }
                  }
              }
  
          }
  </code></pre>