private void checkBox1_CheckedChanged(object sender, EventArgs e) { for (int i = 0; i < checkedListBox1.Items.Count; i++) { checkedListBox1.SetItemChecked(i, checkBox1.Checked); } }
protected void cbExtList_OnSelectedIndexChanged(object sender, EventArgs e) { try { if (Convert.ToInt32(this.cbExtList.SelectedItem.Value) == 0) { foreach (ListItem li in cbExtList.Items) { li.Selected = true; } } else { foreach (ListItem li in cbExtList.Items) { li.Selected = false; } } } catch (Exception ex) { Monitoring.WriteException(ex); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)