P
Prime
Hi All ...
I'm writing a small shopping cart app (uni assignment) and need to list all
the books that a user selects.
I have created a "BookBasket" object that contains among other things an
arraylist of the user selected books.
The "book" object contains isbn,title price and quantity information.
I'd like to display the contents of the BookBasket in a datagrid control.
I assume that to start with I'd have to iterate through the basket to
identify each books information, but then how do I populate the datagrid
manually?
It seems from what I've read,that it is easier to populate a datagrid from a
datasource, but I don't know how that would relate to what I'm doing.
any clues or links to examples would be much appreciated.
Thanks in advance
Prime.
I'm writing a small shopping cart app (uni assignment) and need to list all
the books that a user selects.
I have created a "BookBasket" object that contains among other things an
arraylist of the user selected books.
The "book" object contains isbn,title price and quantity information.
I'd like to display the contents of the BookBasket in a datagrid control.
I assume that to start with I'd have to iterate through the basket to
identify each books information, but then how do I populate the datagrid
manually?
It seems from what I've read,that it is easier to populate a datagrid from a
datasource, but I don't know how that would relate to what I'm doing.
any clues or links to examples would be much appreciated.
Thanks in advance
Prime.