Is there some way to display a progress or wait message while data is loading into a grid? I saw that there is a UseWaitCursor, but that did not seem to work as it always used the wait cursor even if data was not loading.
Thanks.
You might need to put the loading of data into the grid into a background worker process. Then you can use the enquire Progress Bar tool and enquire of the background working to update the progress.
Here is one example of this occuring, but insteadof using the Progress Bar tool, they have simply output a string of the percent complete.
http://ms-dotnet.blogspot.com/2006/03/backgroundworker-threads_08.html
Hope this helps.
Jason
Hi,
BackgroundWorker only raise event ProgressChanged when you call method ReportProgress(). Could you show me how to calculate percent complete of loading data into grid and grid render to display.
My application have data about 20.000 - 50.000, so I need this very much.
Thanks!
Now you have got me. I have seen it done, but i dont really know quite how they did it.
Should it not be possible to run the fill for your dataset in the Background worker, and then use a loop to run the ReportProgress method, also setting the progress on your ProgressBar?
I dont know...I am just playing with ideas here.
Anyone else got any ideas?
there's a knowledgebase entry on that topic.
Have a look here:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=9838
and here
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=9839
hth