Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am running a windows forms project. on the form there is a datagridview, a progress bar, a textbox and two 2 buttons.

The two buttons are used to navigate through the records(one for next record and the other for previous record) the textbox displays the record that is being currently viewed.

How can I link the progress with the database or in this case the datagridview and when the next button is pressed it increments and when the previous button is clicked it decrements and also the progress to be fully filled when the last record is reached ?

Now I am not asking for anyone to do or to write the entire code for , if you can just please show me how to do it i will be happy.

Thank you for your time
Posted
Comments
ZurdoDev 25-Feb-14 21:14pm    
Just look at the properties available on a progress bar. I don't remember off hand what they are but you set properties telling it how many records there are and where you are at.
george4986 26-Feb-14 1:00am    
do u need to change progress while iterating rows of a loaded grid?
1Future 26-Feb-14 6:30am    
yes, exactly that.

1 solution

What you're looking is Asynchronous Communication between your database and your application. That maybe done through Threading as well. But in your case, you should go for progress bar, gridview and button :)

Similar thread is here[^].

-KR
 
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