dynamic links navigate to next and previous records

I have a grid which has items and subitems under them.When I click on the first item I will navigate to the details of the item which has some details that are navigated through  buttons like "Basic Details","Shipping", "Inspection" etc.So I want to establish two links like "<Previous" and "Next >" beside the buttons toolbar so that I can navigate through the items one by one by just clicking on that link (without going back to the grid again) and if I made any changes to the Details in edit mode I save the changes if I click Next or Previous links Also I need to go item by subitems and through next item and subsequent subitems and so on as it is in the  order..

Please help me in doing this

Any inputs are appreciated

  Discussion posts and replies are publicly visible