jascam / CodePlexFoo

0 stars 0 forks source link

DataGridView loading from BackgroundWorker or Thread #316

Open jascam opened 6 years ago

jascam commented 6 years ago

During the startup of a WinForm with a DataGridView, there is a delay while loading the DGV from the SQL server. It would be nice to do that on a separate thread so the UI could be displayed while loading.   Thank you

Migrated CodePlex Work Item Details

CodePlex Work Item ID: '8868' Vote count: '2'

jascam commented 6 years ago

Hello ONiehus,

Thank you for using our code sample request service.

I'd like to confirm with you my understanding of the sample request:

As far as I know,You want to run a thread while loading the MainWinform windows individually. It seems that bottleneck isn't main thread because of your connecting your SQL Server should have time via different network environment. If you use remote database, you should take up more time to connect database. So I think if this is a good sample idea, we should concern with access layer not thread.

Is my understanding right? Please feel free to let me know.

Thanks All-In-One Code Framework http://1code.codeplex.com

This comment was posted by orichisonic on 5/21/2011

jascam commented 6 years ago

Hello - I would like to suggest a similar sample. Create a sample that loads DGV (maybe using background worker) from SQL, and displays a spinning wheel like we see on ASP.NET programs.

Thank you

This comment was posted by MisterT99 on 6/12/2011

jascam commented 6 years ago

This comment was posted by on 8/3/2012

jascam commented 6 years ago

This comment was posted by on 2/21/2013