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 6116317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:11:34+00:00 2026-05-23T15:11:34+00:00

I am working in vs2010. I have created a DataGrid which is bounded to

  • 0

I am working in vs2010.
I have created a DataGrid which is bounded to
ObservableCollection List;

the Class_CMD looks like this :

 public class Class_RetrieveCommand
{
    public string CMD { get; set; }
    public bool C_R_CMD { get; set; }
    public bool S_CMD { get; set; }
    public bool C_S_CMD { get; set; }
}

i have 4 delegates which i pass to another window, and this window needs to update the list during runtime. During the runtime i can see the string column of the grid updated all the time but the DataGridCheckBoxColumns are never updated.

the DataGrid –

<DataGrid Background="Transparent" x:Name="DataGrid_CMD" Width="450" MaxHeight="450" Height="Auto" ItemsSource="{Binding}" AutoGenerateColumns="True">

one of the delegates which updates the bool is –

 public void UpdateC_S_CMD(string Msg)
    {
        foreach (Class_CMD c in List.ToArray())
        {
            if (c.CMD.Equals(Msg))
                c.C_S_CMD = true;
        }
    }

I don’t understand why the bool columns are not updated….
can anyone help please?
thanks.

  • 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-23T15:11:34+00:00Added an answer on May 23, 2026 at 3:11 pm

    Your class Class_RetrieveCommand needs to implement the INotifyPropertyChanged interface. Otherwise the individual rows databound to the instances of the class don’t know that the underlying properties have changed. If you change it to something like this, you should see the changes reflected in your grid:

    public class Class_RetrieveCommand : INotifyPropertyChanged
    {
        private bool _cRCmd;
        private bool _cSCmd;
        private string _cmd;
        private bool _sCmd;
    
        public string CMD
        {
            get { return _cmd; }
            set
            {
                _cmd = value;
                InvokePropertyChanged(new PropertyChangedEventArgs("CMD"));
            }
        }
    
        public bool C_R_CMD
        {
            get { return _cRCmd; }
            set
            {
                _cRCmd = value;
                InvokePropertyChanged(new PropertyChangedEventArgs("C_R_CMD"));
            }
        }
    
        public bool S_CMD
        {
            get { return _sCmd; }
            set
            {
                _sCmd = value;
                InvokePropertyChanged(new PropertyChangedEventArgs("S_CMD"));
            }
        }
    
        public bool C_S_CMD
        {
            get { return _cSCmd; }
            set
            {
                _cSCmd = value;
                InvokePropertyChanged(new PropertyChangedEventArgs("C_S_CMD"));
            }
        }
    
        #region INotifyPropertyChanged Members
    
        public event PropertyChangedEventHandler PropertyChanged;
    
        #endregion
    
        public void InvokePropertyChanged(PropertyChangedEventArgs e)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, e);
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a database project within VS2010. I have created a few
I have created a C#/MVVM project which runs fine when I run it from
I'm working on a ASP.NET MVC2 project, for which I have configured the localisation
Hi I have been battling with this issue all day. I have a vs2010
I have a class library that I created using the Class Library project template.
I'm working on Add to Calendar feature from my Sharepoint webpart (created using VS2010).
I have a created an excel addin application in vb.net using vs2010.The application is
I have been working with Coded UI Test(CUIT) feature of VS2010 . When recording
Working with a SqlCommand in C# I've created a query that contains a IN
Working on a project at the moment and we have to implement soft deletion

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.