1
Answer

Linking progressbar with datagridview in c#

Abraham Lukwesa

Abraham Lukwesa

10y
1.9k
1
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
Answers (1)