How to move records using firstbutton,previousbutton,nextbutton,lastbutton in vb.net

sathyan_8294

Member
Joined
Jun 13, 2007
Messages
5
Programming Experience
Beginner
i am using dotnet 2003.i want to move records using firstbutton,previous button,next button,last button in vb.net windows application(not web application).
 
In VS 2005 they have the binding navigator with all that built into it. I think you just have to create a dataset that contains all the records you wish to display. Four buttons and a global variable that specifies the index of the record you are viewing in the dataset. When you click the first button the global variable gets set to 0 and you call the function that displays the record in position 0. The next button increments it by 1 and resets the display to show the next record in the dataset. The previous button lowers it by one. You need validation for these to insure that an out of range exception will not occur. The last button gets the length of the dataset and shows the last record of the dataset.
 

Latest posts

Back
Top