Mar 04, 2010 10:45 AM|atconway|LINK
I think a better solution is to create a 'Products' class, with the properties applicable like ID, Description, Quantity, Price, etc. Then for each item added to the shopping basket, a new object of type 'Product' is created and then added to a List(of
Product) Generic object collection. Iterating though a collection like this is easy, and so is using it as a DataSource for a GridView control. It can be directly bound manually or using an ObjectDataSource. Working with objects and collections will present
a much cleaner solution, then piece parting together a lot of individual random types (i.e. Arrays, DataSets, etc.), and is more along the lines of good OOP. You may want to read over the following information that will help:
.NET Object Collections Using Generics 101:
Hope this helps!