dork
dork

Reputation: 4608

Grouping Items in GridView

I'm not really sure how I would go about coding this but here's what the GridView should look like:

enter image description here

Items will be grouped according to their respective "products"

Any help regarding the structure of the GridView would be appreciated.

Thank you :)

Upvotes: 0

Views: 452

Answers (2)

Uriil
Uriil

Reputation: 12628

You can achieve this using ListView control. It's way more customizable than GridView

Upvotes: 1

CuccoChaser
CuccoChaser

Reputation: 1079

You could add a group by clause to your query from which you get the items in your gridview. This should get almost your desired output. Except the blank product rows.

Upvotes: 0

Related Questions