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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:46:24+00:00 2026-05-26T03:46:24+00:00

i have c# windows form when it opens it load thousands of record to

  • 0

i have c# windows form when it opens it load thousands of record to fill a data table, the problem is when i click on the form it show a blank window for some time before displaying all the data, So

How do i display a wait sign on the datagridview while the data load and let the form’s other control to be visible?

how can i speed it i am ready to do threading if it does the job.

  • 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-26T03:46:25+00:00Added an answer on May 26, 2026 at 3:46 am

    You need a background thread. You could set up a BackgroundWorker in your form, or set up a basic asynchronous model with a BeginInvoke in your event handler, which will be given another method as its callback when done. In the background worker, do all your data retrieval, and then Invoke back to the main thread when you need to actually populate the DGV (which should take much less time once the information is all in memory).

    The problem is that while the main thread is busy waiting for the DB to come back with all the rows, the system cannot respond to any other user input or Windows messages (such as “redraw yourself”). Windows will see that the message queue for that app is backing up and mark the app as “not responding”. Not a very pleasant user experience.

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

Sidebar

Related Questions

I have a Windows Form that takes quite a bit of time to load
I have a Windows Form application built on a data model and a Windows
I have a sample form with 3 windows. Each window has a label and
I have a Windows Form app that creates a window and monitors for entries
I have 2 Windows Forms. In first, the main window form, has multiline textbox
In a windows form application, on main form load, i have set a serial
I'm doing multi-load in one Window (form load and grid data). This is my
I have window form in my WPF Application when I open new window from
I'm using C# and I have windows form and web service... I have a
I have a Windows Form app written in C#. Its job is to send

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.