Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to use (ProgressBar) with (datagridview) in the vb.net ?

when beginning work (ProgressBar) and after view data in the (datagridview)
Posted
Updated 17-Jan-13 5:36am
v2
Comments
Kschuler 17-Jan-13 11:29am    
Do you mean progress bar? And how exactly are you intending to use it? You need to provide more information to get more help.

Like this?

VB
progressBar1.Maximum = DatagridView1.RowCount 'Set Max Lenght
progressBar1.Step = 1 'Set Step
progressBar1.Value = 0 'Set Begin value

For line as integer = 0 to DatagridView1.RowCount - 1
    'Add your command / syntax
    progressBar1.Value = progressBar1.Value + 1 
Next
 
Share this answer
 
How to Create ProgressBar Column in DataGridView[^]

Please refer above link. Might help you.
 
Share this answer
 
"process bar"?? What's that??

I think you're refering to a progress bar. But, since the DGV doesn't report progress of anything, nor does it "process" anything, what's the point??

The best you can do is a "marquee" type progress bar that just shows something is happening, not the time or progress to 100% completion. You would start the progress bar scrolling, launch the long running database operation to retrieve the records in a BackgroundWorker component, and when the operation is complete, stop the progressbar.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900