Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6603293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:59:23+00:00 2026-05-25T18:59:23+00:00

I have a databinded checkedlistbox in one form and I would like to know

  • 0

I have a databinded checkedlistbox in one form and I would like to know if it is even possible to databind the check box of each list box item with a certain property of an object.

Thanks for any help in advance 🙂

Edit : Perhaps my question was misinterpreted.

I would like to know if it is possible to databind the checkbox for each Item of CheckedListBox. I know how to databind to a source and how to programatically change the entries by iterating through the itmes. What I don’t know is if it is possible to have a class
which implements INotifyPropertyChanged so that when a “CheckedState” property changes the CheckedListBox updates itself.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:59:23+00:00Added an answer on May 25, 2026 at 6:59 pm

    According to Samich’s answer, Here is a full example, the binding source is an Object

    private void Form1_Load(object sender, EventArgs e)
            {
                List<randomClass> lst = new List<randomClass>();
    
                lst.Add(new randomClass());
                lst.Add(new randomClass());
                lst.Add(new randomClass());
                lst.Add(new randomClass());
                lst.Add(new randomClass());
                lst.Add(new randomClass());
    
                ((ListBox)this.checkedListBox1).DataSource = lst;
                ((ListBox)this.checkedListBox1).DisplayMember = "Name";
                ((ListBox)this.checkedListBox1).ValueMember = "IsChecked";
    
    
                for (int i = 0; i < checkedListBox1.Items.Count; i++)
                {
                    randomClass obj = (randomClass)checkedListBox1.Items[i];
                    checkedListBox1.SetItemChecked(i, obj.IsChecked);
                }
            }
        }
    
        public class randomClass
        {
            public bool IsChecked { get; set; }
            public string Name { get; set; }
            public randomClass()
            {
                this.IsChecked = true;
                Name = "name1";
            }
        }
    

    randomClass is for demonstration purposes

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one main outstanding issue, I know now how to databind to lists
I have a 2-dimensional array of objects and I basically want to databind each
How do i databind a listbox to a List that i have in the
I have one list that contains Student informations lsStudents = context.GetTable<Student>().Where(p => p.M_Id.Equals(1)).ToList(); And
I have this method Verify_X which is called during databind for a listbox selected
Problem 1: I have a simple winforms app and I want to DataBind my
i have one hidden field and i want to bind it with two values
I have a nested repeater control. Here is what the HTML looks like: <ItemTemplate>
I have a ASPX.NET DataGrid and im trying to USE a select LIKE 'X'%
I have a Telerik's RadGrid which has 2 columns like this: <Columns> <telerik:GridBoundColumn HeaderText=AirlineCode

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.