it is basic stuff in vb.net,Try the following code may be help you..
Dim inc, max As Integer
max = ds.Tables("Table name").Rows.Count
Button first
inc = 0
display()
button previous
If inc <> 0 Then
inc = inc - 1
display()
End If
Button Last
For inc = 0 To max - 1
display()
Next
Button Next
If inc <> max - 1 Then
inc = inc + 1
display()
End If