Abraham Lukwesa

Abraham Lukwesa

  • NA
  • 2
  • 6.5k

Linking progressbar with datagridview in c#

Feb 25 2014 6:56 PM
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)