Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Looping grid

Does anyone know how I can go about looping a datagrid inside of a data
list? What I am trying to do is basically group products by their product
type. So I want to bind my datalist to my product types table and print out
the product type name and then underneath it, print out all of the products
that have that product_type_id. As of now, I have my datagrid inside of my
datalist and the datalist loops properly and prints out all of the names,
but it only prints the datagrid after the first product type. (I have it
set to just print the same information every time, but that does not even
work) and then how can I get the different information for each product to
display underneath the product_type_name.

Any help will be greatly appreciated,
Jeremy Samkowiak
[818 byte] By [Jeremy Samkowiak] at [2007-11-9 16:24:03]