protected void BindPI() { this.InitialCountryBind(); int? KPI_ID = UDFLib.ConvertIntegerToNull(ViewState["KPI_ID"]); DataTable dt1 = BLL_TMSA_PI.Get_PI_ListByKPI(KPI_ID).Tables[0];//Load by notificationId Session["dtPI"] = dt1; chkPI.DataSource = dt1; chkPI.DataTextField = "Name"; chkPI.DataValueField = "PI_ID"; chkPI.DataBind(); foreach (ListItem chkitem in chkPI.Items) { chkitem.Selected = true; if (ddlPIList.Items.FindByValue(chkitem.Value) != null) { ListItem itemToRemove = ddlPIList.Items.FindByValue(chkitem.Value); ddlPIList.Items.Remove(itemToRemove); } } }