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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:58:53+00:00 2026-05-26T02:58:53+00:00

Reference: C# databinding on combobox I have a similar situation. I have a form

  • 0

Reference:
C# databinding on combobox

I have a similar situation. I have a form with few text boxes, combo boxes, check boxes. Initially I use to catch “changed” event (like, text_changed, selected_index_changed. etc) and sync the UI data with a backing object. I learned about Databinding and I bound all the UI elements to my backing object.

Problem:
Based upon state of my UI, I was enabling and disabling “Submit” button which uses backing object to save to contents. But now, due to DataBinding, property of backing object does not change unless the control bound to that properly looses focus.

Question
Is there a standard way to solve this problem ? Or do I still need to catch “changed” event and set the value of backing object ?

Also, to make the form fault tolerant, I use to save the backing object every N seconds. But with DataBinding (given that the control which is on focus still havn’t set its value to the backing object) I will be saving wrong data.

What I tried
Evey N seconds call this.validate() -> this does not work as it actually populate the old data in the control on focus.

—– NOTE ——

The backing object implements INotifyPropertyChanged interface.

and this is how I bind (not in designer) but in code.

Binding binding = new Binding(“checked”, solution, “InternalFlag”);
checkBoxFlag.DataBindings.Add(binding);

  • 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-26T02:58:53+00:00Added an answer on May 26, 2026 at 2:58 am

    You need change the property of binding which describes when to update the backend object from lost focus to value changed

    Data Source Update Mode

    binding = new Binding("checked", solution, "InternalFlag", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

With reference to Problem with date day/month reversing on save I have further noted
For reference, the code is for the motorola 68008. Say I have code such
For reference, I'm using Visual Studio 2010. I have a custom build step defined
Using MVVM Light, I have two WPF applications that reference a common Views library.
I have this databinding that doesn't work and I can not figure ut why.
I have yet to find a nice way to do two way databinding in
I have to run a SQL query using a text value in a label
First, a few questions regarding databinding: Is the default DataContext for a control set
reference How can I disable the use of the Tab key to select the
I am using Windows Forms , and I have a combo box with the

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.