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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:35:11+00:00 2026-05-22T19:35:11+00:00

In my WPF application – I have a Listview with a Gridview inside. A

  • 0

In my WPF application – I have a Listview with a Gridview inside. A user is able to add files to this list.

The gridview should allow me to have quite rich “rows”, each row showing file name, extra application detail and most importantly a progress bar. Each row in the gridview is databound to a business object in a collection, and specifically the object has a property “Progress” which is bound to the progress bar.

I need to process each file, extract data and send the data to a web service and I would like to display the progress for each file in it’s respective progress bar as I work through the collection of files.

Initially I started off with a simple loop containing the processing logic which periodically updated the “Progress” field for each row and noted that the UI didn’t update very well.

I then moved the processing logic in the loop to a BackgroundWorker which modified the business object “Progress” field, and because the UI thread was not working so hard – it was a lot more responsive.

However due to the asynchronous nature of BackgroundWorker, it started multiple BackgroundWorkers (one for each row) virtually all at once as the loop spun out. All my progress bars started progressing…

What would be the best approach to limit it to only 2-3 BackgroundWorkers going at once? Or even leave it at one BackgroundWorker – and it doesn’t start until the previous one is completed? How can I introduce a dependency so that in essence all the BackgroundWorkers are synchronous?

  • 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-22T19:35:11+00:00Added an answer on May 22, 2026 at 7:35 pm

    You can use the Task class for that, like in sample here

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

Sidebar

Related Questions

I have a simple WPF application with a menu. I need to add menu
I have a WPF application using MVVM. I have some user controls that show
I have a small WPF application. This application has a button that when clicked,
I have a simple WPF application which I am trying to start. I am
I have a WPF application in VS 2008 with some web service references. For
After developing a WPF application without Source Control, I decided to add the solution
I have written a WPF application that I want to port to Silverlight 2.
My WPF application is becoming a real pain. I have created a Window and
I am building a WPF application using C# 3.5 I have a WPF menu
We have a WPF application that has a print preview dialog. When we create

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.