smriti Posted April 27, 2005 Posted April 27, 2005 hi, can any one tell me how to use progress bar This bar should display when data is loaded from database in to datagrids. Thanks Quote
Rothariger Posted April 27, 2005 Posted April 27, 2005 if you use de datagrid.datasource, datagrid.datamember, you dont need a progress bar, its take a instant to fill all the dg.. Quote
dinoboy Posted May 1, 2005 Posted May 1, 2005 if you use de datagrid.datasource' date=' datagrid.datamember, you dont need a progress bar, its take a instant to fill all the dg..[/quote'] It depends where the data comes from. For example when the datasource is a datatable which is filled by the results of the web service method then it may take some time to fetch the results. In that case the progress bar is very useful for the user. Quote
thenerd Posted May 2, 2005 Posted May 2, 2005 If you're loading NOT in a loop you can randomly place this in your code: application.doevents progressbar.value += 1 If you're loading in a loop and you know how many iterations you will do you can figure out what percent done you are and set the progressbar.value to = that percent. If you don't know how many iterations there are..... Then I dunno.. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.