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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:56:38+00:00 2026-06-11T03:56:38+00:00

I have and object on bindingSource.DataSource = object I have to implement Save and

  • 0

I have and object on

bindingSource.DataSource = object

I have to implement Save and Revert Changes on a Windows Form
for Revert Changes i have all Items for Properties with DataSourceUpdateMode.Never
and bindingSource.ResetBindings(false);
-> works fine

but for Save I need to make a Commit
bindingSource.EndEdit(); – it doesn’t update my object

and i tried to make

TextEdit.DataBindings.DefaultDataSourceUpdateMode = DataSourceUpdateMode.OnValidation;
bindingSource.EndEdit();
TextEdit.DataBindings.DefaultDataSourceUpdateMode = DataSourceUpdateMode.Never;

but it didn’t work,
if i let DataSourceUpdateMode.OnValidation , the Save will work fine , but Revert changes will not work
and I don’t want to make a copy of the object
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-11T03:56:40+00:00Added an answer on June 11, 2026 at 3:56 am

    When you set the DataSourceUpdateMode enum to Never and use this method on several controls bound to the BindingSource, there are various problems:

    it resets the values of other controls, or
    it works for one control but not for the other. 
    

    http://msdn.microsoft.com/en-us/library/system.windows.forms.binding.writevalue%28v=vs.90%29.aspx

    http://weblogs.asp.net/psteele/archive/2006/10/10/Data-Binding-fails-me-again_2E002E002E00_.aspx

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

Sidebar

Related Questions

I have a List of an object, set to DataSource of a BindingSource, set
I have an object Document with nested Properties (Name, Value) collection. Now I want
I have a form which contains a DataGridView, a BindingSource, a DataTable, and a
I have a DataGridView and a BindingSource bs populated using bs.DataSource = list; where
For example: I have an Contact object on the form (see below). Can i
A bunch of dotnet framework components use a DataSource component. I have an object
I have the following business object: public class MyObject { // Some public properties
I have a C# Windows Forms project with a Form containing 2 ListBoxes and
I have a very simple windows form project with Entity Framework. Simply I draged
I have a table with say 1640 items. I set bindingSource.Filter = some filter

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.