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

  • Home
  • SEARCH
  • 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 8738493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:44:28+00:00 2026-06-13T10:44:28+00:00

I have a DataGrid with a DataGridCheckBoxColumn and others. The DataGrid ItemSource is mapped

  • 0

I have a DataGrid with a DataGridCheckBoxColumn and others. The DataGrid ItemSource is mapped to a ObservableCollection that contains rows of Tasks. The Task class includes properties like "ID", "IsScheduled", "IsScheduled_Date", "IsScheduled_EditorID", Etc. I am trying to figure how to make the one DataGridCheckBoxColumn field (IsScheduled) also save the date (IsScheduled_Date) and who made the change (IsScheduled_EditorID) when checked.

(1) I have tried to make this save the extra data using multibinding, but my efforts have so far failed. You can see follow my progress with solving a similar issue Here.

(2) I have tried having the DataGrid CellEditEnding event save the extra data but it ended up committing the extra data before the IsScheduled data was committed and caused troubles whenever the row and/or cell edit was canceled.

(3) I have tried listening to the property change event in my Task class and assigning the additional changes there. This seemed to work fine until I realized that when the data was first loaded it cause a change event that overwrote any earlier changes.

Added Information


The Task class is an Entity Framework Class that was generated from a DB. I was listening to the OnIscheduledChanged event and making the necessary changes because when I did it in the generated class it was always overwritten.

More Info


There seems to be some confusion about the Task class. As I stated it is generated by the Entity Framework and a breakpoint shows the setters being called on load… Overwriting the change. Not to mention any custom code being overwritten everytime the code regenerates.

    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
    [DataMemberAttribute()]
    public global::System.Boolean IsScheduled
    {
        get
        {
            return _IsScheduled;
        }
        set
        {
            OnIsScheduledChanging(value);
            ReportPropertyChanging("IsScheduled");
            _IsScheduled = StructuralObject.SetValidValue(value);
            ReportPropertyChanged("IsScheduled");
            OnIsScheduledChanged();
        }
    }
    private global::System.Boolean _IsScheduled;
    partial void OnIsScheduledChanging(global::System.Boolean value);
    partial void OnIsScheduledChanged();

Any Ideas?

  • 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-06-13T10:44:29+00:00Added an answer on June 13, 2026 at 10:44 am

    I ended up creating a ViewModel class for the entity model that exposed the same property. I bound the DataGrid ItemSource to a list of the wrapped Task Models (e.g. below). [Obviously this is quick example class to show the property and would need property notification to work properly]

    Class TaskViewModel
    {
        private Task task;
        public Boolean IsScheduled
        {
            get
            {
                return task.IsScheduled;
            }
            set
            {
                this.task.IsScheduled = value;
                this.task.IsScheduledDate = Date.Now();
            }
    
        TaskViewModel(Task task)
        {
           this.task = task;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a DataGrid and I want to populate a column that contains a
I have datagrid with paging enabled that can have 10 rows per page. Also
I have a DataGrid that binding an ObservableCollection of self tracking entities Users can
I am making a WPF-application.I have a datagrid with a column header that contains
I have a datagrid that potentially can have many rows. As the user right
I have a DataGrid that represents layers - each row is an image on
I have a DataGrid in my wpf app <DataGrid Name=datagrid2 ItemSource={Binding} CanUserReorderColumns=False IsReadOnly=True SelectionMode=Single
I have a datagrid that allows user to change and save columns widths and
I have a datagrid that has a DataNavigateUrlFormatString that passes info on to the
My problem is that I have datagrid filled in code like : (...) while

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.