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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:03:09+00:00 2026-05-12T06:03:09+00:00

I guess it’s quite a common problem in databinding scenarios. What do you usually

  • 0

I guess it’s quite a common problem in databinding scenarios.
What do you usually do, if you are running a batch update and want to avoid that a propertychanged-dependend calculations/actions/whatever are executed for every single update?

The first thing which usually comes to my mind, is to either introduces a new boolean or unhook/hook the eventhandler, …

What I don’t like about this approaches is:

  • they introduce new complexity (has to be maintained, …)
  • they are error prone, because you have to make sure that a suppressed notifications are sent afterwards

I’m wondering if somebody addressed this problem already in a more convenient way that is more easy to handle?

tia
Martin

Edit: not to missunderstand me. I know about the things .NET provides like RaiseListChangedEvents from BindingList, … They are all addressing the problem in more/less the same way as I described, but I’m searching for a different way which doesn’t have to listed drawbacks.
Maybe I’m on the wrong track, but I though I give it a try here…

  • 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-12T06:03:09+00:00Added an answer on May 12, 2026 at 6:03 am

    There isn’t a single one-size-fits-all solution, unfortunately. I’ve applied or seen the following solutions:

    1. There are two singals. One signal is emitted when the change comes from a user action, the other always fires. This allows to distinguish between changes in the UI and updates by code.

    2. A boolean to protect code

    3. The property event framework stops propagating events automatically when a value didn’t really change.

    4. A freeze/thaw method on the signal or the signal manager (i.e. the whole framework)

    5. A way to merge signals into a single one. You can do N updates and they get collected into M signals where M <= N. If you change the same property 100 times, you still only get 1 signal.

    6. Queuing of signals (instead of synchronous execution). The queuing code can then merge signals, too. I’ve used this with great success in an application that doesn’t have a “Save” button. All changes are saved to the database as you make them. When you change a text, the changes are merged over a certain time (namely until the previous DB update returns) and then, they are committed as a single change.

    7. An API to set several values at once; only a single signal is emitted.

    8. The signal framework can send signals at different levels of granularity. Say you have a person with a name. When you change the name, you get two signals: One for the name change and one “instance field changed”. So if you only care “has something changed”, then you can hook into the instance instead of all the fields.

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

Sidebar

Ask A Question

Stats

  • Questions 242k
  • Answers 242k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer This directive will only stop the error from being logged… May 13, 2026 at 7:35 am
  • Editorial Team
    Editorial Team added an answer What I seem to gather from your examples and the… May 13, 2026 at 7:35 am
  • Editorial Team
    Editorial Team added an answer For file sending you can see your OWN question here:… May 13, 2026 at 7:35 am

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I guess it should be a common technique, However, I tried the following two
I guess it is impossible, but I will ask it anyway. I have a
I guess it's quite a common problem in databinding scenarios. What do you usually
I guess, it is quite common task. There is a table A let's say

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.