How can i check / uncheck items using SetItemChecked in checkboxlist

By Super Man

Here i will show how you can check and unchecked all the items in checkboxlist.

            // check items in checkboxlist
            for (int i = 0; i < checkedListBox1.Items.Count; i++)
            {
                checkedListBox1.SetItemChecked(i, true);
            }

            // uncheck items in checkboxlist
            for (int i = 0; i < checkedListBox1.Items.Count; i++)
            {
                checkedListBox1.SetItemChecked(i, false);
            }

How can i check / uncheck items using SetItemChecked in checkboxlist  (1889 Views)