hi
I have the codes for the save,delete and update button but I need the codes for first,prev,last and next can you please help. please

show your effort friend..

you can try this.

dim tableadapter as new dataTable
dim position as integer = 0
'for the first record
position = 0 
textbox1.text = tableadapter.rows(position)("yourfield").tostring()

' for next record
if tableadapter.rows.count > 0 then
position = posiiton +1 
textbox1.text = tableadapter.rows(position)("yourfield").tostring()

' for previous record
if tableadapter.rows.count > 0 then
position = position -1 
textbox1.text = tableadapter.rows(position)("yourfield").tostring()

' for last record
if tableadapter.rows.count > 0 then
position =tableadapter.rows.count - 1 
textbox1.text = tableadapter.rows(position)("yourfield").tostring()

hope it helps u..

@chloie

did i solve ur problem?
i hope it solves ur problem

please help me about examination system, i proposed to my professor that i have a randomized question and it will be have a back button. in one form it will have a many question with three choices using radio button and label.. thanks

Please start a new thread. Don't hijack a two year old thread.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.