Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

navigating through Arraylist

Status
Not open for further replies.

JohnBeton

Programmer
Feb 9, 2004
21
BE
Hello all,

I have an arraylist with objects of type Product (self defined type). This arraylist is a member of a windows form (compact framework).

Now i want to navigate through this arraylist, using buttons (next, previous) on the form.
I can go to the next item without problems (using enumerator), but how can i go to the previous item ?

Or is there another collection type that makes navigating easier ?

Any help is much appreciated...
 
You may want to Google on how to implement or write a 'double linked lists' class. A linked list is a collection of objects, with a pointer to the next node (single linked list) or pointers to the previous and next node (double linked list). This collection is not implemented by the .NET framework, but there are many examples of how to write your own on the net.

Regards, Ruffnekk
---
Is it my imagination or do buffalo wings taste just like chicken?
 
Yeah, That is exactly what i need.
Thanks a lot for your reply.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top