The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

databinding not able to save object after modification

Last post 04-01-2008, 11:37 AM by kyace2003. 2 replies.
Sort Posts: Previous Next
  •  04-01-2008, 11:28 AM 8664

    databinding not able to save object after modification

    I am sure I am missing something but after searching without any result I have to post this.

    I have a winform with databindings similar to this:

                this.ceInactive.DataBindings.Add(new Binding("Checked", _company, CompanyMetadata.PropertyNames.Inactive, true, DataSourceUpdateMode.OnPropertyChanged));

     The values from object are being displayed on the form. I double checked that I had setup INotifyPropertyChanged.

    When I enter the value into the form, I see that the property is being assigned the value typed so far. I hit "save" on the form, which calls _company.Save() and nothing happens. The property with the new value has the new value, however _company.es.IsDirty and _company.es.IsModified are both set to false. 

                           EntitySpaces Version # 2007.1.1210.0
                           MyGeneration Version # 1.2.0.7
                               4/1/2008 11:13:24 AM

    I am very confident this is a stupid user error but am missing something.

     

    Thanks,

     

    Mark

    Filed under:
  •  04-01-2008, 11:33 AM 8667 in reply to 8664

    Re: databinding not able to save object after modification

    Do you have to call EndEdit() ? on the entity? David and Scott know more about this than I, I'm kind of the back end guy.

    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  04-01-2008, 11:37 AM 8668 in reply to 8667

    Re: databinding not able to save object after modification

    No!  It was a stupid user, I for whatever reason can not get that piece into my thought process.
     

View as RSS news feed in XML