The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: WPF CheckListBox
5 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

Zeeshan AfzalPosted Sep 19, 2020, 6:09 AM
Hey MaheshYour article about CheckListBox in WPF is really helpfull. I insert the data in database by using CheckListBox, but i stuck in a problem which is, how i check only those items which we store in database. In winform we can handle this problem with this line of code "chkListColors.SetItemChecked(index, true);" but here this is not usefull please guide me how can i do this in wpf...Thanx
Falguni PanchalPosted Aug 31, 2020, 5:13 AM
Hello, I have 2 string variables which fetches some data from a file, and which I want to add to checkedlistbox in wpf. But I want one string to be left aligned and other one to be right aligned. Is there any way I can achieve this? Please help.
Paolo PaoloPosted May 11, 2019, 4:39 PM
I get the error "impossible to do the cast 'System.String' on type 'Microsoft.Windows.Controls.CheckListBoxItem'" when I try to do the foreach cycle -> foreach (CheckListBoxItem item in CheckListBox1.CheckedItems)
Shajahan PothuvacholaPosted Feb 20, 2015, 7:20 AM
how can i select all by an item in the checklistbox and also opposite
AhmededitedPosted Oct 11, 2011, 10:29 AMEdited Oct 11, 2011, 10:30 AM
thank for your easy explain in listbox control we can set SelectedValuePath , how can i set it to the checklistbox